]> WPIA git - gigi.git/commitdiff
fix: bootstrap buttons for domain management
authorFelix Dörre <felix@dogcraft.de>
Sat, 13 Aug 2016 11:45:47 +0000 (13:45 +0200)
committerFelix Dörre <felix@dogcraft.de>
Sat, 13 Aug 2016 12:40:01 +0000 (14:40 +0200)
Change-Id: I6bb5ddb565b643ff5d9fc02b9d3b05d6e3d7d252

src/org/cacert/gigi/pages/account/domain/DomainAddForm.templ
src/org/cacert/gigi/pages/account/domain/PingConfigForm.java
src/org/cacert/gigi/pages/account/domain/PingConfigForm.templ

index 89d2dcde6df3c4054239bcca8f0d7270e1c9f6af..c6de13d761f78465425b481efa721047d814094a 100644 (file)
@@ -1,4 +1,4 @@
 <label for="newdomain"><?=_Domain?>: </label><input class="form-control" type="text" name="newdomain" value="" required> (<?=_In the following:?> <span class='exampleDomainPlace'>example.org</span>)
 
 <?=$pingconfig?>
-<input type="submit" name="adddomain" value="<?=_I own or am authorised to control this domain?>">
+<button type="submit" name="adddomain" class="btn btn-primary"><?=_I own or am authorised to control this domain?></button>
index 84301d3bc73d8cdd37216ebddd1a63f0fa35e0d7..496bc4cfb213b9b0ba70e05749af68acd7ff9be4 100644 (file)
@@ -147,8 +147,8 @@ public class PingConfigForm extends Form {
 
     @Override
     protected void outputContent(PrintWriter out, Language l, Map<String, Object> vars) {
+        vars.put("notEmbedded", true);
         outputEmbeddableContent(out, l, vars);
-        out.print("<input type=\"submit\" value=\"Update\"/>");
     }
 
     protected void outputEmbeddableContent(PrintWriter out, Language l, Map<String, Object> vars) {
index 16c50a3e53a8bb742d2f3d0d90bf7b692f5f50e5..7d2eb5dc8412622dc1790c4bbaa4800694a42318 100644 (file)
@@ -39,4 +39,6 @@
     </table>
   </div>
 </div>
-  
\ No newline at end of file
+<? if($notEmbedded) { ?>
+<button class="btn btn-primary" type="submit"><?=_Update?></button>
+<? } ?>