forked from documentcloud/documentcloud
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# Conflicts: # app/views/admin/signup.html.erb # app/views/admin/tools.html.erb # app/views/common/new/_footer.html.erb # app/views/common/new/_header.html.erb # app/views/documents/_iframe_embed_code.html.erb # app/views/donate/thanks.html.erb # app/views/help/eng/index.markdown # app/views/help/spa/index.markdown # app/views/home/about.html.erb # config/document_cloud.yml # public/400.html # public/403.html # public/404.html # public/409.html # public/500.html # public/501.html # public/502.html # public/503.html # public/javascripts/translations/eng.js # public/note_embed/note_embed.js # test/controllers/admin_controller_test.rb
- Loading branch information
Showing
77 changed files
with
1,620 additions
and
1,101 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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
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
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
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
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
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
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
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
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 |
---|---|---|
@@ -0,0 +1,68 @@ | ||
<div class="content"> | ||
<div class="container-sm"> | ||
|
||
<%= form_tag admin_add_organization_path, method: 'post' do %> | ||
<%= token_tag %> | ||
<div class="form-group row"> | ||
<label for="organization_name" class="col-sm-4 col-form-label">Organization Name</label> | ||
<div class="col-sm-8"> | ||
<input type="text" class="form-control" name="organization[name]" id="organization_name" placeholder="The Daily Planet" value="<%= @params[:organization][:name] %>"> | ||
</div> | ||
</div> | ||
<div class="form-group row"> | ||
<label for="organization_slug" class="col-sm-4 col-form-label">Short Name (Slug)</label> | ||
<div class="col-sm-8"> | ||
<input type="text" class="form-control" name="organization[slug]" id="organization_slug" placeholder="daily-planet" value="<%= @params[:organization][:slug] %>"> | ||
</div> | ||
</div> | ||
<div class="form-group row"> | ||
<label for="organization_language" class="col-sm-4 col-form-label">Interface Language</label> | ||
<div class="col-sm-8"> | ||
<select name="organization[language]" class="form-control" id="organization_language"> | ||
<% DC::Language::USER.each do |lang| %> | ||
<option value="<%= lang %>" <%= 'selected' if lang == @params[:organization][:language] %>><%= DC::Language::NAMES[lang] %></option> | ||
<% end %> | ||
</select> | ||
<div class="form-text small text-muted">What language the workspace interface will use.</div> | ||
</div> | ||
</div> | ||
<div class="form-group row"> | ||
<label for="organization_document_language" class="col-sm-4 col-form-label">Document Language</label> | ||
<div class="col-sm-8"> | ||
<select name="organization[document_language]" class="form-control" id="organization_document_language"> | ||
<% DC::Language::SUPPORTED.each do |lang| %> | ||
<option value="<%= lang %>" <%= 'selected' if lang == @params[:organization][:document_language] %>><%= DC::Language::NAMES[lang] %></option> | ||
<% end %> | ||
</select> | ||
<div class="form-text small text-muted">What language documents will default to for processing when uploaded.</div> | ||
</div> | ||
</div> | ||
<div class="form-group row"> | ||
<label for="account_email" class="col-sm-4 col-form-label">Admin Email Address</label> | ||
<div class="col-sm-8"> | ||
<input type="email" class="form-control" name="account[email]" id="account_email" value="<%= @params[:account][:email] %>" placeholder="c.kent@dailyplanet.foo"> | ||
</div> | ||
</div> | ||
<div class="form-group row"> | ||
<label for="account_first_name" class="col-sm-4 col-form-label">Admin Name</label> | ||
<div class="col-sm-4"> | ||
<input type="text" class="form-control" name="account[first_name]" id="account_first_name" placeholder="Clark" value="<%= @params[:account][:first_name] %>"> | ||
</div> | ||
<div class="col-sm-4"> | ||
<input type="text" class="form-control" name="account[last_name]" id="account_last_name" placeholder="Kent" value="<%= @params[:account][:last_name] %>"> | ||
</div> | ||
</div> | ||
<div class="row"> | ||
<div class="col-sm-8 offset-sm-4"> | ||
<label class="custom-control custom-checkbox"> | ||
<input type="checkbox" class="custom-control-input" name="authorize" value="y" <%= 'checked' if @params[:authorize] == 'y' %>> | ||
<span class="custom-control-indicator"></span> | ||
<span class="custom-control-description small">If the admin already exists, should we make this organization its <b>default membership</b>?</span> | ||
</label> | ||
</div> | ||
</div> | ||
<p class="my-5"><button type="submit" class="btn btn-success">Add organization</button></p> | ||
<% end %> | ||
<p class="text-center note mb-0">This form is intended as an admin tool. All users, especially those who plan to upload documents to DocumentCloud, should review our <%= link_to 'terms of service', terms_path %>.</p> | ||
</div> | ||
</div> |
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<div class="container-md content paper"> | ||
<%= bootstrap_form_for @organization, url: admin_update_organization_url(id: @organization), html: {class: 'mt-4'} do |f| %> | ||
<div class="form-header"> | ||
<%= link_to 'Cancel', admin_organization_path(slug: @organization.slug), class: 'btn btn-sm btn-link btn-danger float-right ml-1 mb-1' %> | ||
<h1>Editing <%= @organization.name %></h1> | ||
</div> | ||
<%= f.text_field :name %> | ||
<%= f.text_field :slug %> | ||
<%= f.check_box :demo, label: 'This is a <b>demo account</b>'.html_safe %> | ||
<p class="mt-4"> | ||
<%= f.submit class: 'btn btn-success' %> | ||
</p> | ||
<% end %> | ||
</div> |
Oops, something went wrong.