Skip to content

Commit

Permalink
Revert "Display Admin section questions as accordions"
Browse files Browse the repository at this point in the history
This reverts commit 75110ba.
  • Loading branch information
sssoz committed Nov 6, 2023
1 parent b10acfb commit e4ea2b5
Show file tree
Hide file tree
Showing 2 changed files with 156 additions and 33 deletions.
133 changes: 133 additions & 0 deletions cms/sass/themes/_dashboard.scss
Original file line number Diff line number Diff line change
Expand Up @@ -172,4 +172,137 @@
padding: 40px;
}
}

// Application form styles — overrides
.form {
padding: $spacing-04 0;
background: rgba($salmon, .15);
}

.form--compact {
h1 {
margin: 0 (-$spacing-04) $spacing-04 (-$spacing-04);
padding: $spacing-04;
border-radius: $spacing-02 $spacing-02 0 0;
background: $warm-black;
color: $white;

+ .form__header {
margin-top: -$spacing-04;
}

+ .alert {
margin: 0 0 $spacing-04 0;
background-color: $light-grey;
border-radius: $spacing-02;
border-color: $mid-grey;
color: $warm-black;
}

+ .form__question {
padding-top: 0;
border: 0;
}
}

.form__header {
margin: 0 (-$spacing-04);
padding: $spacing-03 $spacing-04;
width: auto;
border: 0;
border-top: 1px dotted $mid-grey;
background: $light-grey;
}

fieldset {
margin: 0 0 $spacing-04 0;
padding: 0 $spacing-04;
border-radius: $spacing-02;
background: $white;
}

.form__question {
padding: $spacing-04;
margin: 0;
margin-left: -$spacing-04;
margin-right: -$spacing-04;
border-top: 1px dotted $mid-grey;

input, select, textarea, .select2-container {
margin-bottom: $spacing-03;
width: 100% !important;
border-color: $mid-grey;
}

.removable-fields li {
display: flex;
justify-content: center;
}

.remove_field__button {
margin-bottom: $spacing-03;
white-space: nowrap;
}
}

.form__subquestion {
border-left-width: $spacing-01;
}

.form__short-help {
margin-bottom: $spacing-02;
font-size: smaller;
}

.icon-container {
display: inline-flex;
margin-bottom: $spacing-02;
padding: $spacing-01;
line-height: 1;
border-radius: 50%;
color: $white;
}

.icon-container--unable_to_access {
background: $grapefruit;
}

.icon-container--not_found,
.icon-container--not_validated,
.icon-container--missing,
.icon-container--outdated {
background: $sanguine;
}

.icon-container--fully_validated,
.icon-container--present {
background: $mid-green;
}

.parsley-errors-list {
padding: $spacing-03;
border-radius: $spacing-01;
background: rgba($grapefruit, .25);
font-weight: bold;

p {
margin: 0;
}
}

.formulaic-annotation-pissn-list,
.formulaic-annotation-eissn-list,
.formulaic-annotation-preservation_service-list {
margin: 0;
padding: $spacing-03;
border-radius: $spacing-02;
border: 1px dotted $mid-grey;
background: $light-grey;
}

.formulaic-clickableurl-visit {
margin: 0 0 0 $spacing-03;
white-space: nowrap;
}
}
}
56 changes: 23 additions & 33 deletions portality/templates/application_form/editorial_form_fields.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,59 +17,49 @@ <h2 class="form__header">{{ fs.label }}</h2>
{% set fs = formulaic_context.fieldset("reassign") %}
{% if fs %}
{% for f in fs.fields() %}
<details>
<summary><h2 class="form__header">{{ fs.label }} +</h2></summary>
<h2 class="form__header">{{ fs.label }}</h2>
{% set field_template = f.template %}
{% include field_template %}
</details>
{% include field_template %}
{% endfor %}
{% endif %}

{% set fs = formulaic_context.fieldset("status") %}
{% if fs %}
{% for f in fs.fields() %}
<details>
<summary><h2 class="form__header">{{ fs.label }} +</h2></summary>
{% set field_template = f.template %}
{% include field_template %}
</details>
<h2 class="form__header">{{ fs.label }}</h2>
{% set field_template = f.template %}
{% include field_template %}
{% endfor %}
{% endif %}
{% endif %}

{% set fs = formulaic_context.fieldset("continuations") %}
{% if fs %}
<details>
<summary><h2 class="form__header">{{ fs.label }} +</h2></summary>
{% for f in fs.fields() %}
{% set field_template = f.template %}
{% include field_template %}
{% endfor %}
</details>
<h2 class="form__header">{{ fs.label }}</h2>
{% for f in fs.fields() %}
{% set field_template = f.template %}
{% include field_template %}
{% endfor %}
{% endif %}

{% set fs = formulaic_context.fieldset("subject") %}
{% if fs %}
<details>
<summary><h2 class="form__header">{{ fs.label }} +</h2></summary>
{% for f in fs.fields() %}
{% set field_template = f.template %}
{% include field_template %}
{% endfor %}
<p>Selected: <strong class="admin_value_preview" id="subject-value" data-source="#subject"></strong></p>
<div id="subject_checkbox-errors"></div>
</details>
<h2 class="form__header">{{ fs.label }}</h2>
{% for f in fs.fields() %}
{% set field_template = f.template %}
{% include field_template %}
{% endfor %}
<p>Selected: <strong class="admin_value_preview" id="subject-value" data-source="#subject"></strong></p>
<div id="subject_checkbox-errors"></div>
{% endif %}

{% set fs = formulaic_context.fieldset("seal") %}
{% if fs %}
<details>
<summary><h2 class="form__header">{{ fs.label }} +</h2></summary>
<p>The journal has fulfilled all the criteria for the Seal. </p>
{% for f in fs.fields() %}
{% set field_template = f.template %}
{% include field_template %}
{% endfor %}
</details>
<h2 class="form__header">{{ fs.label }}</h2>
<p>The journal has fulfilled all the criteria for the Seal. </p>
{% for f in fs.fields() %}
{% set field_template = f.template %}
{% include field_template %}
{% endfor %}
{% endif %}
</fieldset>

0 comments on commit e4ea2b5

Please sign in to comment.