Sha256: babb4c6cd4485b8b23c51d5a6df678618894ff58261bcce358b284589678db93
Contents?: true
Size: 1.7 KB
Versions: 6
Compression:
Stored size: 1.7 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 - if policy(entity).update? %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 .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(:old_password, identity, type: 'password', placeholder: 'Your current password') = form_control(:password, identity, type: 'password', placeholder: 'Your new password') = form_control(:password_confirmation, identity, type: 'password', label: 'Confirm Password', placeholder: 'Confirm your password') %button.btn.btn-primary{ type: 'submit' } Change Password .col-md-2
Version data entries
6 entries across 6 versions & 1 rubygems