-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2628 from manyfold3d/hide-sharing-in-single-user-…
…mode Don't show sharing settings in single-user mode
- Loading branch information
Showing
1 changed file
with
23 additions
and
21 deletions.
There are no files selected for viewing
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,24 +1,26 @@ | ||
<div class="row mb-3"> | ||
<div class="col col-auto"> | ||
<%= t(".permissions") %> | ||
</div> | ||
<div class="col border p-3"> | ||
<%= cocooned_container id: "cocooned-caber-relations" do %> | ||
<%= form.fields_for :caber_relations do |f| %> | ||
<%= render "caber_relation_fields", f: f %> | ||
<% end %> | ||
<% end %> | ||
<div class="row"> | ||
<%= tag.div class: "col-auto offset-sm-2 ps-0" do %> | ||
<%= cocooned_add_item_button t(".add"), form, :caber_relations, | ||
class: "btn btn-secondary", | ||
insertion_node: "#cocooned-caber-relations", | ||
insertion_method: "append" %> | ||
<%- if SiteSettings.multiuser_enabled? %> | ||
<div class="row mb-3"> | ||
<div class="col col-auto"> | ||
<%= t(".permissions") %> | ||
</div> | ||
<div class="col border p-3"> | ||
<%= cocooned_container id: "cocooned-caber-relations" do %> | ||
<%= form.fields_for :caber_relations do |f| %> | ||
<%= render "caber_relation_fields", f: f %> | ||
<% end %> | ||
<% end %> | ||
<div class="row"> | ||
<%= tag.div class: "col-auto offset-sm-2 ps-0" do %> | ||
<%= cocooned_add_item_button t(".add"), form, :caber_relations, | ||
class: "btn btn-secondary", | ||
insertion_node: "#cocooned-caber-relations", | ||
insertion_method: "append" %> | ||
<% end %> | ||
</div> | ||
</div> | ||
<datalist id="caber-relations-role-list"> | ||
<option value="role::member" label="<%= translate "application.caber_relation_fields.subject.role.member" %>"></option> | ||
<option value="role::public"><%= translate "application.caber_relation_fields.subject.role.public" %></option> | ||
</datalist> | ||
</div> | ||
<datalist id="caber-relations-role-list"> | ||
<option value="role::member" label="<%= translate "application.caber_relation_fields.subject.role.member" %>"></option> | ||
<option value="role::public"><%= translate "application.caber_relation_fields.subject.role.public" %></option> | ||
</datalist> | ||
</div> | ||
<%- end %> |