Restore backend survey publish and active controls
This commit is contained in:
@@ -413,29 +413,18 @@
|
||||
height: 2.2rem;
|
||||
border-radius: 999px;
|
||||
border: 1px solid rgba(162, 168, 180, 0.62);
|
||||
background: rgba(162, 168, 180, 0.22);
|
||||
background: #7f8793;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
cursor: pointer;
|
||||
transition: background 0.18s ease, border-color 0.18s ease;
|
||||
}
|
||||
|
||||
.survey-visibility-dot__icon {
|
||||
width: 0.9rem;
|
||||
height: 0.9rem;
|
||||
border-radius: 50%;
|
||||
background: #7f8793;
|
||||
display: inline-block;
|
||||
transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
|
||||
}
|
||||
|
||||
.survey-visibility-dot.is-on {
|
||||
background: rgba(0, 174, 151, 0.2);
|
||||
border-color: rgba(0, 174, 151, 0.68);
|
||||
}
|
||||
|
||||
.survey-visibility-dot.is-on .survey-visibility-dot__icon {
|
||||
background: #0a8378;
|
||||
border-color: rgba(0, 174, 151, 0.68);
|
||||
box-shadow: 0 0 0 0.18rem rgba(0, 174, 151, 0.14);
|
||||
}
|
||||
|
||||
.survey-button-row {
|
||||
|
||||
@@ -94,9 +94,7 @@
|
||||
<input type="hidden" name="_survey_action" value="toggle-active">
|
||||
<input type="hidden" name="item_id" value="{{ survey.id }}">
|
||||
<input type="hidden" name="_token" value="{{ csrf_token('toggle-active-' ~ survey.id) }}">
|
||||
<button type="submit" class="survey-visibility-dot{{ survey.isActive ? ' is-on' : '' }}" title="{{ survey.isActive ? 'survey.edit.deactivate_survey'|trans : 'survey.edit.activate_survey'|trans }}" aria-label="{{ survey.isActive ? 'survey.edit.deactivate_survey'|trans : 'survey.edit.activate_survey'|trans }}">
|
||||
<span class="survey-visibility-dot__icon" aria-hidden="true"></span>
|
||||
</button>
|
||||
<button type="submit" class="survey-visibility-dot{{ survey.isActive ? ' is-on' : '' }}" title="{{ survey.isActive ? 'survey.edit.deactivate_survey'|trans : 'survey.edit.activate_survey'|trans }}" aria-label="{{ survey.isActive ? 'survey.edit.deactivate_survey'|trans : 'survey.edit.activate_survey'|trans }}"></button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user