]> WPIA git - gigi.git/blobdiff - src/org/cacert/gigi/pages/orga/CreateOrgForm.templ
add: class dbObjects/CountryCode to handle country code in organisations
[gigi.git] / src / org / cacert / gigi / pages / orga / CreateOrgForm.templ
index b050f23dadf0aa1635914b3d76804101b6701d46..761bd78b0655fa0e6f4e05019b1110fef65727f3 100644 (file)
   </tr>
   <tr>
     <td><?=_Country?>:</td>
-    <td><input class="form-control" type="text" name="C" value="<?=$C?>" maxlength="2" size="5">
+    <td>
+      <select name="C">
+    <? foreach($countryCode) { ?>
+        <option value="<?=$cc?>" <?=$selected?> ><?=$cc?> - <?=$display?></option>
+    <? } ?>
+      </select>
       <?=_(2 letter !'<a href="http://www.iso.org/iso/home/standards/country_codes/iso-3166-1_decoding_table.htm">'ISO code!'</a>')?>
     </td>
   </tr>
   <? if($edit) { ?>
   <tr>
     <td></td>
-    <td><?=_WARNING: updating the data will revoke all issued certificates.?></td>
+    <td><div class="alert alert-warning"><?=_WARNING: updating the data will revoke all issued certificates.?></div></td>
   </tr>
   <tr>
     <td colspan="2"><button type="submit" name="action" value="updateCertificateData" class="btn btn-primary"><?=_Update certificate data?></button></td>