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

improvement

parent bd47bcdb
No related branches found
No related tags found
No related merge requests found
......@@ -18,8 +18,8 @@ class Communication::Block::Component::TimeSlot < Communication::Block::Componen
def default_data
{
'from' => '0',
'to' => '0'
'from' => '',
'to' => ''
}
end
......
<a class="<%= button_classes('mb-4') %>"
v-on:click="data.elements.push(Object.assign({}, defaultElement))">
v-on:click="data.elements.push(JSON.parse(JSON.stringify(defaultElement)))">
<%= label %>
</a>
......@@ -13,7 +13,8 @@ to = t 'admin.communication.blocks.components.time_slot.to'
<span class="me-2 pt-1">
<%= from %>
</span>
<input class="form-control me-1"
<input :id="'element-' + index + '-<%= property %>%-from'"
class="form-control me-1"
v-model="<%= model %>.<%= property %>.from"
type="time" />
</label>
......@@ -21,7 +22,8 @@ to = t 'admin.communication.blocks.components.time_slot.to'
<span class="me-2 pt-1">
<%= to %>
</span>
<input class="form-control"
<input :id="'element-' + index + '-<%= property %>%-to'"
class="form-control"
v-model="<%= model %>.<%= property %>.to"
type="time" />
</label>
......
<% if component.present? %>
<%= component.from %><%= component.to %>
<% end %>
<%= component.from %><%= component.to %>
<%= indentation %><%= property %>:
<%= indentation %> from: "<%= value['from'] %>"
<%= indentation %> to: "<%= value['to'] %>"
<%= indentation %> from: "<%= component.from %>"
<%= indentation %> to: "<%= component.to %>"
<div class="row mb-4">
<div class="col-md-6 col-xl-4">
<h3 class="h4"><%= t '.contacts' %></h3>
<%= block_component_edit :name %>
<%= block_component_edit :address, rows: 1 %>
<div class="row">
<div class="col-md-4">
<%= block_component_edit :zipcode %>
<div class="card">
<div class="card-header d-flex">
<h3 class="h4"><%= t '.contacts' %></h3>
</div>
<div class="col-md-8">
<%= block_component_edit :city %>
<div class="card-body">
<%= block_component_edit :name %>
<%= block_component_edit :address, rows: 1 %>
<div class="row">
<div class="col-md-4">
<%= block_component_edit :zipcode %>
</div>
<div class="col-md-8">
<%= block_component_edit :city %>
</div>
</div>
<%= block_component_edit :country %>
</div>
</div>
<%= block_component_edit :country %>
</div>
<div class="col-md-6 col-xl-8">
<div class="row">
......
......@@ -205,7 +205,7 @@ en:
city:
label: City
placeholder: Enter the city
contacts: Contacts
contacts: Mailing address
country:
label: Country
placeholder: Enter the country
......
......@@ -205,7 +205,7 @@ fr:
city:
label: Ville
placeholder: Entrer le nom de la ville
contacts: Contacts
contacts: Adresse postale
country:
label: Pays
placeholder: Entrer le nom du pays
......
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