Codeminer42/cm42-central

View on GitHub
app/views/projects/_delete_confirmation.html.erb

Summary

Maintainability
Test Coverage
<div class="modal-dialog">
  <div class="modal-content">
    <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal">&times;</button>
        <h4 class="modal-title"><%= t('projects.delete project') %></h4>
    </div>
    <div class="modal-body">
      <p> <%= t('projects.index.are you sure you want to delete this project_html', project_name: project.name) %></p>
      <p> <%= t('projects.delete_confirmation') %></p>
      
      <div class="form-group">
        <%= form_tag(project, method: :delete) do %>
          <div class="form-group">
            <%= text_field_tag 'name_confirmation', nil, class: 'form-control auth-form-control', data: {'project-name': project.name}, autocomplete: 'off' %>
          </div>
          
          <div class="form-group">
            <div class="clearfix">
              <div class="btn-group actions pull-right clearfix">    
                <%= submit_tag t('delete') ,
                  id: 'project-delete',
                  disabled: true,
                  class: 'btn btn-danger btn-form'%>
              </div>
            </div>
          </div>
        <% end %>
      </div>
    </div>
  </div>
</div>