cartodb/lib/assets/javascripts/builder/editor/layers/delete-layer-confirmation.tpl
2020-06-15 10:58:47 +08:00

50 lines
2.5 KiB
Smarty
Executable File

<div class="u-flex u-justifyCenter">
<div class="Modal-inner Modal-inner--grid u-flex u-justifyCenter">
<div class="Modal-icon">
<svg width="24px" height="25px" viewbox="521 436 24 25" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<path d="M524.5,440 L540.5,440 L540.5,460 L524.5,460 L524.5,440 Z M528.5,437 L536.5,437 L536.5,440 L528.5,440 L528.5,437 Z M522,440 L544,440 L522,440 Z M528.5,443.5 L528.5,455.5 L528.5,443.5 Z M532.5,443.5 L532.5,455.5 L532.5,443.5 Z M536.5,443.5 L536.5,455.5 L536.5,443.5 Z" id="Shape" stroke="#F19243" stroke-width="1" fill="none"/>
</svg>
</div>
<div>
<h2 class="CDB-Text CDB-Size-huge is-light u-bSpace--xl"><%- _t('editor.layers.delete.title', { layerName: layerName }) %></h2>
<p class="CDB-Text CDB-Size-large u-altTextColor"><%= _t('editor.layers.delete.desc', { layerVisName: layerVisName }) %></p>
<ul class="Modal-listText">
<% if (affectedItemsMessages.length > 0) { %>
<li class="Modal-listTextItem">
<p class="CDB-Text CDB-Size-large">
<%= _t('editor.layers.delete.affected-items') %>
<% for (var i = 0; i < affectedItemsMessages.length; i++) { %>
<span class="CDB-Text is-semibold"><%- affectedItemsMessages[i] %></span>
<% if (i < (affectedItemsMessages.length - 2)) { %>
,
<% } else if (i == (affectedItemsMessages.length - 2)) { %>
<%= _t('editor.layers.delete.and') %>
<% } %>
<% } %>
.</p>
</li>
<% } %>
<li class="Modal-listTextItem">
<p class="CDB-Text CDB-Size-large"><%= _t('editor.layers.delete.link-to-export') %></p>
</li>
</ul>
<ul class="Modal-listActions u-flex u-alignCenter">
<li class="Modal-listActionsitem">
<button class="CDB-Button CDB-Button--secondary CDB-Button--big js-cancel">
<span class="CDB-Button-Text CDB-Text is-semibold CDB-Size-medium u-upperCase">
<%- _t('editor.layers.delete.cancel') %>
</span>
</button>
</li>
<li class="Modal-listActionsitem">
<button class="CDB-Button CDB-Button--primary CDB-Button--big js-confirm">
<span class="CDB-Button-Text CDB-Text is-semibold CDB-Size-medium u-upperCase">
<%- _t('editor.layers.delete.confirm') %>
</span>
</button>
</li>
</ul>
</div>
</div>
</div>