Sha256: 7b39f3474eab8fbb09bfd3922bc7520e1af54e8b72f98b034eaec4a23e2d1eef
Contents?: true
Size: 971 Bytes
Versions: 2
Compression:
Stored size: 971 Bytes
Contents
<%# name: headmin/forms/group accepts block: yes parameters: title: (string) Title for card description: (string) Description for card body: (boolean) If true, block contents will be renderd inside the card body %> <div class="card forms-group mb-3 shadow-sm"> <div class="card-body"> <% if defined?(title) && title.present? %> <h5 class="card-title"><%= title %></h5> <% end %> <% if defined?(description) && description.present? %> <p class="card-text text-secondary"><%= description %></p> <% end %> <% # Render inside body %> <% if !defined?(body) || body %> <%= yield if block_given? %> <% end %> </div> <% # Render outside body %> <% if defined?(body) && !body %> <%= yield if block_given? %> <% end %> <div class="card-footer"> <div class="d-flex justify-content-end"> <%= form.submit "Opslaan", class: 'btn btn-sm btn-primary' %> </div> </div> </div>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
headmin-0.1.2 | app/views/headmin/forms/_group.html.erb |
headmin-0.1.1 | app/views/headmin/forms/_group.html.erb |