Bug 27920: (QA follow-up) Change radios to a single select pulldown
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
1afc3b741b
commit
41fa262a96
|
|
@ -320,18 +320,18 @@
|
|||
<li class="radio">
|
||||
<input type="radio" id="overwrite_cardnumberyes" name="overwrite_cardnumber" value="1" /><label for="overwrite_cardnumberyes">Overwrite the existing one with this</label>
|
||||
<ul>
|
||||
<li>
|
||||
<label class="update_dateexpiry" for="update_dateexpiry">Renew existing patrons</label>
|
||||
<select class="update_dateexpiry" type="select" id="update_dateexpiry" name="update_dateexpiry" disabled/>
|
||||
<option value="">using the datexpiry value in the file, if present</option>
|
||||
<option value="dateexpiry">from the current membership expiry date</option>
|
||||
<option value="now">from the current date</option>
|
||||
</select>
|
||||
</li>
|
||||
<li>
|
||||
<input class="overwrite_passwords" type="checkbox" id="overwrite_passwords" name="overwrite_passwords" disabled/>
|
||||
<label class="overwrite_passwords" for="overwrite_passwords">Replace patron passwords with those in the file (blank passwords will be ignored)</label>
|
||||
</li>
|
||||
<li>
|
||||
<input class="update_dateexpiry" type="checkbox" id="update_dateexpiry" name="update_dateexpiry" disabled/>
|
||||
<label class="update_dateexpiry" for="update_dateexpiry">Update existing patron expiration dates.</label>
|
||||
</li>
|
||||
<li>
|
||||
<input class="update_dateexpiry_from_today" type="checkbox" id="update_dateexpiry_from_today" name="update_dateexpiry_from_today" disabled/>
|
||||
<label class="update_dateexpiry_from_today" for="update_dateexpiry_from_today">Update patron's expiration date based on the current date instead of the patron's enrollment date</label>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ol>
|
||||
|
|
|
|||
|
|
@ -114,8 +114,7 @@ if ( $uploadborrowers && length($uploadborrowers) > 0 ) {
|
|||
my $handle = $input->upload('uploadborrowers');
|
||||
my %defaults = $input->Vars;
|
||||
my $overwrite_passwords = defined $input->param('overwrite_passwords') ? 1 : 0;
|
||||
my $update_dateexpiry = defined $input->param('update_dateexpiry') ? 1 : 0;
|
||||
my $update_dateexpiry_from_today = defined $input->param('update_dateexpiry_from_today') ? 1 : 0;
|
||||
my $update_dateexpiry = $input->param('update_dateexpiry');
|
||||
my $return = $Import->import_patrons(
|
||||
{
|
||||
file => $handle,
|
||||
|
|
@ -125,8 +124,8 @@ if ( $uploadborrowers && length($uploadborrowers) > 0 ) {
|
|||
overwrite_passwords => $overwrite_passwords,
|
||||
preserve_extended_attributes => scalar $input->param( 'ext_preserve' ) || 0,
|
||||
preserve_fields => \@preserve_fields,
|
||||
update_dateexpiry => $update_dateexpiry,
|
||||
update_dateexpiry_from_today => $update_dateexpiry_from_today,
|
||||
update_dateexpiry => $update_dateexpiry ? 1 : 0,
|
||||
update_dateexpiry_from_today => $update_dateexpiry eq "now" ? 1 : 0,
|
||||
send_welcome => $welcome_new,
|
||||
}
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in New Issue