]> git.mxchange.org Git - friendica.git/commitdiff
Add support for specific confirm value in confirm.tpl
authorHypolite Petovan <hypolite@mrpetovan.com>
Tue, 14 Sep 2021 21:28:07 +0000 (17:28 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Tue, 14 Sep 2021 21:28:07 +0000 (17:28 -0400)
- button tags allow for a different value from the label

view/templates/confirm.tpl
view/theme/frio/templates/confirm.tpl

index ea50846990c03596dc3c69b1767514f3fe611659..47f231a5f9a09fbaaecbe4893997fee1f9317285 100644 (file)
@@ -4,8 +4,8 @@
 
        <h3 id="confirm-message">{{$message}}</h3>
 
-       <input class="confirm-button" id="confirm-submit-button" type="submit" name="{{$confirm_name}}" value="{{$confirm}}" />
-       <input class="confirm-button" id="confirm-cancel-button" type="submit" name="canceled" value="{{$cancel}}" />
+       <button class="confirm-button" id="confirm-submit-button" type="submit" name="{{$confirm_name}}" value="{{$confirm_value}}">{{$confirm}}</button>
+       <button class="confirm-button" id="confirm-cancel-button" type="submit" name="canceled" value="{{$cancel}}">{{$cancel}}</button>
 
 </form>
 </center>
index 187078b68a98bf98de2077c95a4956549b20fbb8..3f8c0c3268eed5dff4c5811ce13e1ef1308ffe23 100644 (file)
@@ -3,7 +3,7 @@
        <div id="confirm-message">{{$message}}</div>
 
        <div class="form-group pull-right settings-submit-wrapper">
-               <button type="submit" name="{{$confirm_name}}" id="confirm-submit-button" class="btn btn-primary confirm-button" value="{{$confirm}}">{{$confirm}}</button>
+               <button type="submit" name="{{$confirm_name}}" id="confirm-submit-button" class="btn btn-primary confirm-button" value="{{$confirm_value}}">{{$confirm}}</button>
                <button type="submit" name="canceled" id="confirm-cancel-button" class="btn confirm-button" data-dismiss="modal">{{$cancel}}</button>
        </div>
 </form>