cartodb-4.42/lib/assets/javascripts/builder/components/modals/add-layer/content/navigation.tpl
2024-04-06 05:25:13 +00:00

66 lines
3.6 KiB
Smarty
Executable File

<span class="Filters-separator"></span>
<div class="Filters-row">
<div class="Filters-group">
<div class="Filters-typeItem Filters-typeItem--searchEnabler js-search-enabler">
<button class="Filters-searchLink CDB-Text is-semibold u-upperCase CDB-Size-medium js-search-link">
<i class="Filters-searchLinkIcon CDB-IconFont CDB-IconFont-lens"></i><%- _t('components.modals.add-layer.navigation.search') %>
</button>
</div>
<ul class="Filters-group js-links-list">
<li class="Filters-typeItem js-filter-type">
<button class="Filters-typeLink js-typeItem u-actionTextColor CDB-Text is-semibold u-upperCase CDB-Size-medium js-upload <%- listingType === 'upload' ? 'is-selected' : '' %> <%- !canCreateDataset ? 'is-disabled' : '' %>">
<%- _t('components.modals.add-layer.navigation.upload-dataset') %>
</button>
</li>
<li class="Filters-typeItem js-filter-type">
<button class="Filters-typeLink js-typeItem u-actionTextColor CDB-Text is-semibold u-upperCase CDB-Size-medium js-connect <%- listingType === 'import' ? 'is-selected' : '' %> <%- !canCreateDataset ? 'is-disabled' : '' %>">
<%- _t('components.modals.add-layer.navigation.connect-dataset') %>
</button>
</li>
<% if (showDatasets) { %>
<li class="Filters-typeItem js-filter-type">
<button class="Filters-typeLink js-typeItem u-actionTextColor CDB-Text is-semibold u-upperCase CDB-Size-medium js-datasets <%- listingType === 'datasets' && shared !== 'only' && !library ? 'is-selected' : '' %>">
<%- _t('components.modals.add-layer.navigation.your-datasets') %>
</button>
</li>
<% if (isInsideOrg) { %>
<li class="Filters-typeItem js-filter-type">
<button class="Filters-typeLink js-typeItem u-actionTextColor CDB-Text is-semibold u-upperCase CDB-Size-medium js-shared <%- listingType === 'datasets' && shared === "only" ? 'is-selected' : '' %>">
<% if (totalShared) { %>
<strong><%- totalShared %></strong>
<% } %>
<%- _t('components.modals.add-layer.navigation.shared-with-you') %>
</button>
</li>
<% } %>
<% } %>
<% if (hasDataLibrary) { %>
<li class="Filters-typeItem js-filter-type">
<button class="Filters-typeLink js-typeItem u-actionTextColor CDB-Text is-semibold u-upperCase CDB-Size-medium js-library <%- listingType === 'datasets' && library ? 'is-selected' : '' %>">
<%- _t('components.modals.add-layer.navigation.data-library') %>
</button>
</li>
<% } %>
</ul>
</div>
<div class="Filters-typeItem Filters-typeItem--searchField js-search-field">
<form class="Filters-searchForm js-search-form">
<input class="Filters-searchInput CDB-Text CDB-Size-medium js-search-input" type="text" value="<%- ( tag && (':' + tag) ) || q %>" placeholder="<%- _t('components.modals.add-layer.navigation.search-placeholder') %>" />
<% if (tag || q) { %>
<button type="button" class="Filters-cleanSearch js-clean-search u-actionTextColor">
<i class="CDB-IconFont CDB-IconFont-close"></i>
</button>
<% } %>
</form>
</div>
<div class="Filters-addLayer js-order-list">
<button class="Filters-typeLink js-typeItem u-actionTextColor CDB-Text is-semibold u-upperCase CDB-Size-medium js-create-empty <%- listingType === 'scratch' ? 'is-selected' : '' %> <%- !canCreateDataset ? 'is-disabled' : '' %>">
<%- _t('components.modals.add-layer.navigation.create-empty-' + createModelType) %>
</button>
</div>
</div>