This repository has been archived by the owner on Mar 12, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 569
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
37 additions
and
129 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 0 additions & 28 deletions
28
app/views/organizations/_remove_organization_modal.html.erb
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,37 @@ | ||
<h1 class="page-header">Edit Organization</h1> | ||
<div class="columns"> | ||
<div class="one-half column centered"> | ||
<%= form_for @organization do |f| %> | ||
<%= render 'shared/error_messages', object: f.object %> | ||
<%= render 'organizations/organization_banner' %> | ||
|
||
<dl class="form"> | ||
<dt><%= f.label :title, class: 'input-label' %></dt> | ||
<dd><%= f.text_field :title, class: 'textfield' %></dd> | ||
</dl> | ||
<div class="site-content"> | ||
<div class="site-content-cap"> | ||
<h2 class="site-content-heading"><%= @organization.title %> settings</h2> | ||
</div> | ||
</div> | ||
|
||
<div class="form-actions left"> | ||
<%= link_to 'Cancel', @organization, class: 'btn', role: 'button' %> | ||
<%= f.submit 'Update Organization', class: 'btn btn-primary' %> | ||
<div class="site-content-body"> | ||
<%= form_for @organization do |f| %> | ||
<%= render 'shared/error_messages', object: f.object %> | ||
|
||
<div class="columns"> | ||
<div class="two-thirds column"> | ||
<dl class="form"> | ||
<dt><%= f.label :title %></dt> | ||
<dd><%= f.text_field :title, class: 'textfield' %></dd> | ||
</dl> | ||
</div> | ||
<% end %> | ||
|
||
<!-- I promise I'll come and style this later --> | ||
<br><br><br><br> | ||
<!-- --> | ||
<div class="one-third column dangerzone-container"> | ||
<p class="text-emphasized">Remove this organization</p> | ||
<p class="text-muted">Once you remove this organization, there is not going back. Please be certain.</p> | ||
<p class="text-muted">Everything you have created, and every student that you have invited will also be removed from your organization on github.com</p> | ||
|
||
<%= link_to 'Remove Organization', '#delete-organization', class: 'btn btn-danger', role: 'button' %> | ||
</div> | ||
</div> | ||
<%= form_for @organization, html: { method: :delete } do |f| %> | ||
<%= f.submit 'Remove this organization', class: 'btn btn-block btn-danger' %> | ||
<% end %> | ||
</div> | ||
</div> | ||
|
||
<%= render partial: 'remove_organization_modal', locals: { modal_id: 'delete-organization' } %> | ||
<div class="form-actions"> | ||
<%= f.submit 'Save changes', class: 'btn btn-green' %> | ||
<%= link_to 'Cancel', @organization, class: 'btn', role: 'button' %> | ||
</div> | ||
<% end %> | ||
</div> |