Sha256: fdba1f3cc5bf41369a5f9d62e798e841ae801e995e42916270becea7ac5f08cd
Contents?: true
Size: 1.97 KB
Versions: 2
Compression:
Stored size: 1.97 KB
Contents
%h1= t('.title', name: @registration_request.fullname) %table.table.table-striped %tbody %tr %th= EgovUtils::RegistrationRequest.human_attribute_name('mail') %td= @registration_request.mail %tr %th= EgovUtils::RegistrationRequest.human_attribute_name('firstname') %td= @registration_request.firstname %tr %th= EgovUtils::RegistrationRequest.human_attribute_name('lastname') %td= @registration_request.lastname %tr %th= EgovUtils::RegistrationRequest.human_attribute_name('organization') %td= @registration_request.organization %tr %th= EgovUtils::RegistrationRequest.human_attribute_name('note') %td= @registration_request.note %tr %th= EgovUtils::RegistrationRequest.human_attribute_name('created_at') %td= l(@registration_request.created_at) %tr %th= EgovUtils::RegistrationRequest.human_attribute_name('status') %td= t("registration_request.statuses.#{@registration_request.status}") - if @registration_request.status != 'pending' %tr %th= EgovUtils::RegistrationRequest.human_attribute_name('reason') %td= @registration_request.reason %tr %th= EgovUtils::RegistrationRequest.human_attribute_name('internal_reason') %td= @registration_request.internal_reason - if @registration_request.status == 'pending' = bootstrap_form_for(@registration_request, url: '#') do |f| = f.text_area(:reason) = f.text_area(:internal_reason) = f.hidden_field(:status, value: nil) = f.collection_check_boxes :roles, EgovUtils::UserUtils::Role.roles, :first, ->(role) { I18n.t("roles.#{role.first}") } = f.submit t('.accept'), class: 'btn btn-success', data: { value: 'accepted' } = f.submit t('.reject'), class: 'btn btn-danger', data: { value: 'rejected' } :javascript $(function() { $('input[type=submit]').click(function(e) { var status = $(this).data('value'); $('#registration_request_status').val(status); }); });
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
egov_utils-1.2.1 | app/views/egov_utils/registration_requests/show.html.haml |
egov_utils-1.2.0 | app/views/egov_utils/registration_requests/show.html.haml |