Skip to content
Snippets Groups Projects
Commit 60f7eb93 authored by Arnaud Levy's avatar Arnaud Levy
Browse files

tertiary

parent 9ab04ee3
No related branches found
No related tags found
No related merge requests found
......@@ -75,7 +75,7 @@
<div class="col-xxl-4 col-md-6">
<h3 class="h4"><%= t '.button_2' %></h3>
<label class="form-label" for="button">
<label class="form-label" for="button_secondary">
<%= t '.button_label' %>
</label>
<input id="button_secondary"
......@@ -93,4 +93,25 @@
v-model="data.url_secondary"
placeholder="<%= t '.url_placeholder' %>" />
</div>
<div class="col-xxl-4 col-md-6">
<h3 class="h4"><%= t '.button_3' %></h3>
<label class="form-label" for="button_tertiary">
<%= t '.button_label' %>
</label>
<input id="button_tertiary"
type="text"
class="form-control"
v-model="data.button_tertiary"
placeholder="<%= t '.button_placeholder' %>" />
<label class="form-label mt-3" for="url_tertiary">
<%= t '.url_label' %>
</label>
<input id="url_tertiary"
type="url"
class="form-control"
v-model="data.url_tertiary"
placeholder="<%= t '.url_placeholder' %>" />
</div>
</div>
......@@ -21,11 +21,19 @@
<% end %>
<% unless @block.template.url_secondary.blank? %>
<a href="<%= @block.template.url_secondary %>"
class="btn btn-secondary"
class="btn btn-primary"
target="_blank"
rel="noopener">
<%= @block.template.button_secondary %>
</a>
<% end %>
<% unless @block.template.url_tertiary.blank? %>
<a href="<%= @block.template.url_tertiary %>"
class="btn btn-primary"
target="_blank"
rel="noopener">
<%= @block.template.button_tertiary %>
</a>
<% end %>
</div>
</div>
......@@ -15,3 +15,8 @@
<%= prepare_text_for_static block.template.button_secondary %>
url: >-
<%= prepare_text_for_static block.template.url_secondary %>
button_tertiary:
text: >-
<%= prepare_text_for_static block.template.button_tertiary %>
url: >-
<%= prepare_text_for_static block.template.url_tertiary %>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment