Sha256: 0ed84863089122c31ce15d88ededba5ef7154ae382a2d87293081966121edcbb
Contents?: true
Size: 1.67 KB
Versions: 4
Compression:
Stored size: 1.67 KB
Contents
.row .col-md-2 .col-md-8 .panel.panel-default .panel-body .author %img.pull-right.thumbnail{ src: entity.gravatar } %h4= entity.email %hr %p.description %label Name: = entity.name %p.description %label Surname: = entity.surname %p.description %label Roles: = entity.roles_dataset.map(:name).map(&:titlecase).join(', ') %p.description %label Signed up: = entity.created_at.strftime('%Y-%m-%d %H:%M:%S') .row .col-md-6 %a.btn.btn-default{ href: "#{base_path}/#{entity.id}/edit" } Edit .col-md-6.text-right - if policy(entity).delete? %form{ method: 'post', action: "#{base_path}/#{entity.id}" } %input{ name: '_method', value: 'DELETE', type: 'hidden' } %button.btn.btn-warning{ type: 'submit' } Delete .col-md-2 - if entity.identity.first .row .col-md-2 .col-md-8 .panel.panel-default .panel-heading %h4 Change Password .panel-body %form.form-horizontal{ method: 'post', action: "#{base_path}/#{entity.id}/identity" } %input{ name: '_method', value: 'PUT', type: 'hidden' } = form_control(:password, entity.identity.first, type: 'password', placeholder: 'Your password', group: 'identity') = form_control(:password_confirmation, entity.identity.first, type: 'password', label: 'Confirm Password', placeholder: 'Confirm your password', group: 'identity') %button.btn.btn-primary{ type: 'submit' } Change Password .col-md-2
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
ditty-0.3.0 | views/users/display.haml |
ditty-0.2.2 | views/users/display.haml |
ditty-0.2.1 | views/users/display.haml |
ditty-0.2.0 | views/users/display.haml |