noesya/osuny

View on GitHub
app/views/admin/communication/blocks/components/time_slot/_edit.html.erb

Summary

Maintainability
Test Coverage
<%
rows ||= 3 
from = t 'admin.communication.blocks.components.time_slot.from'
to = t 'admin.communication.blocks.components.time_slot.to'
%>
<% if label.present? %>
  <label class="form-label">
    <%= label %> 
  </label>
<% end %>
<div class="d-flex align-items-center mb-2">
  <label  class="form-label d-flex me-2">
    <span class="me-2 pt-1">
      <%= from %> 
    </span>
    <input  :id="'element-' + index + '-<%= property %>%-from'"
            class="form-control me-1"
            v-model="<%= model %>.<%= property %>.from"
            type="time" />
  </label>
  <label  class="form-label d-flex">
    <span class="me-2 pt-1">
      <%= to %>
    </span>
    <input  :id="'element-' + index + '-<%= property %>%-to'"
            class="form-control"
            v-model="<%= model %>.<%= property %>.to"
            type="time" />
  </label>
</div>