[Redizajn 1KA] - Urejanje --> Nastavitve --> Aktivnost/kvote - v7
Spremenjen styling za koledar, skrito polje za št. vnosov, če nimamo kvote.
This commit is contained in:
parent
3eac34c48e
commit
1a7bd15d95
@ -8651,7 +8651,7 @@ class SurveyAdminSettings {
|
||||
datepicker("#expireManual1");';
|
||||
|
||||
if($row['expire'] == PERMANENT_DATE)
|
||||
echo '$("#expire").find(".ui-datepicker-trigger").addClass("displayNone");';
|
||||
echo '$("#expire").find(".ui-datepicker-trigger").addClass("disabled");';
|
||||
|
||||
echo ' });
|
||||
</script>';
|
||||
@ -8671,7 +8671,7 @@ class SurveyAdminSettings {
|
||||
echo '<fieldset>';
|
||||
echo '<legend>'.$lang['srv_vote_quotas'].' '.Help::display('srv_activity_quotas').'</legend>';
|
||||
|
||||
echo '<div class="setting_holder">';
|
||||
echo '<div class="setting_holder '.($row['vote_limit'] == 0 ? 'bottom0' : '').'" id="vote_limit">';
|
||||
|
||||
echo '<span class="setting_title">' . $lang['srv_vote_quotas_2'] . ':</span>';
|
||||
echo '<div class="setting_item">';
|
||||
@ -8689,21 +8689,20 @@ class SurveyAdminSettings {
|
||||
|
||||
echo '</div>';
|
||||
|
||||
// Opozorilo, da je limit odgovorov presezen
|
||||
echo '<div id="vote_limit_warning" class="'.($row['vote_limit'] == 0 ? 'displayNone' : '').'">';
|
||||
|
||||
echo '<div class="setting_holder">';
|
||||
echo '<span class="setting_title"><label for="anketa' . $row['id'] . '" >'.$lang['srv_vote_count'].':</label></span>';
|
||||
echo '<input type="text" class="large" id="vote_count" name="vote_count" ' . ($row['vote_limit'] == 0 ? ' disabled="disabled"' : '') . ' value="' . $row['vote_count'] . '"/></label>';
|
||||
echo '</div>';
|
||||
|
||||
// Opozorilo, da je limit odgovorov presezen
|
||||
echo '<div id="vote_limit_warning" class="setting_holder '.($row['vote_limit'] == 0 ? 'displayNone' : '').'">';
|
||||
|
||||
echo $lang['srv_survey_voteLimit_warning'].':';
|
||||
echo '<p class="top16">'.$lang['srv_survey_voteLimit_warning'].':</p>';
|
||||
|
||||
$srv_survey_non_active_voteLimit = SurveySetting::getInstance()->getSurveyMiscSetting('srvlang_srv_survey_non_active_voteLimit');
|
||||
if ($srv_survey_non_active_voteLimit == '') $srv_survey_non_active_voteLimit = $lang['srv_survey_non_active_voteLimit'];
|
||||
echo '<p><span class="italic">'.$srv_survey_non_active_voteLimit.' </span><a href="'.$site_url.'admin/survey/index.php?anketa='.$this->anketa.'&a=jezik">'.$lang['edit3'].'</a><p>';
|
||||
echo '</div>';
|
||||
|
||||
echo '<p><span class="italic">'.$srv_survey_non_active_voteLimit.' </span><a href="'.$site_url.'admin/survey/index.php?anketa='.$this->anketa.'&a=jezik"><span class="faicon edit"></span></a><p>';
|
||||
|
||||
echo '</fieldset>';
|
||||
}
|
||||
|
||||
|
@ -3680,11 +3680,11 @@ function recalc_alert_expire(days) {
|
||||
// enablamo in disablamo vnos max stevila glasov (trajanje)
|
||||
function voteCountStatus(status) {
|
||||
if (status == 1 || status == 2) {
|
||||
$('#vote_count').removeAttr('disabled');
|
||||
$('#vote_limit_warning').removeClass('displayNone');
|
||||
$('#vote_limit').removeClass('bottom0');
|
||||
} else {
|
||||
$('#vote_count').attr('disabled', true);
|
||||
$('#vote_limit_warning').addClass('displayNone');
|
||||
$('#vote_limit').addClass('bottom0');
|
||||
}
|
||||
}
|
||||
function voteCountToggle(status) {
|
||||
@ -4422,12 +4422,12 @@ function setExpirePermanent() {
|
||||
if (data.permanent == '0') {
|
||||
// enablamo polje
|
||||
$("#expireManual1").removeClass("disabled");
|
||||
$("#expire").find(".ui-datepicker-trigger").removeClass("displayNone");
|
||||
$("#expire").find(".ui-datepicker-trigger").removeClass("disabled");
|
||||
|
||||
} else {
|
||||
// disablamo polje
|
||||
$("#expireManual1").addClass("disabled");
|
||||
$("#expire").find(".ui-datepicker-trigger").addClass("displayNone");
|
||||
$("#expire").find(".ui-datepicker-trigger").addClass("disabled");
|
||||
|
||||
}
|
||||
$("#expireManual1").val(data.expire);
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -125,4 +125,9 @@ button.ui-datepicker-trigger {
|
||||
border: none;
|
||||
background: none;
|
||||
padding: 0;
|
||||
|
||||
&.disabled {
|
||||
color: $very-dark-gray;
|
||||
pointer-events: none;
|
||||
}
|
||||
}
|
||||
|
@ -17,8 +17,14 @@ fieldset{
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
p.setting_text {
|
||||
p{
|
||||
&.bottom16 {
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
&.top16 {
|
||||
margin-top: 16px;
|
||||
}
|
||||
}
|
||||
|
||||
.setting_horizontal_wrapper {
|
||||
@ -35,12 +41,13 @@ fieldset{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
&:first-of-type{
|
||||
&:first-of-type,
|
||||
&.top0{
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
&:last-of-type,
|
||||
&.no_margin{
|
||||
&.bottom0{
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user