2022-05-17 06:04:44 +00:00
< ? php
/**
* @ copyright Copyright ( c ) 2022 Raoul Snyman < raoul @ snyman . info >
*
* @ author Raoul Snyman < raoul @ snyman . info >
*
* @ license GNU AGPL version 3 or any later version
*
* This program is free software : you can redistribute it and / or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation , either version 3 of the
* License , or ( at your option ) any later version .
*
* This program is distributed in the hope that it will be useful ,
* but WITHOUT ANY WARRANTY ; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE . See the
* GNU Affero General Public License for more details .
*
* You should have received a copy of the GNU Affero General Public License
* along with this program . If not , see < http :// www . gnu . org / licenses />.
*
*/
script ( 'externalpassword' , 'admin' );
style ( 'externalpassword' , 'admin' );
?>
< div id = " security-externalpassword " class = " section " >
< h2 class = " inlineblock " >< ? php p ( $l -> t ( 'External Password' )); ?> </h2>
< span id = " externalpassword-error-msg " class = " msg success hidden " > Saved </ span >
2022-11-12 03:07:29 +00:00
< p class = " settings-hint " >< ? php p ( $l -> t ( 'To direct users to an external website in order to change their password or update their billing, set the URLs below.' )); ?> </p>
2022-05-17 06:04:44 +00:00
< div class = " admin-settings-externalpassword " >
< form id = " externalpassword-form " method = " POST " >
< div class = " form-section " >
< label for = " change-password-url " >< ? php p ( $l -> t ( 'External password URL' )); ?> </label>
< input type = " text " id = " change-password-url " name = " changePasswordUrl " value = " <?php p( $_['changePasswordUrl'] ); ?> " />
</ div >
< div class = " form-section " >
2022-11-12 03:07:29 +00:00
< label for = " description-text " >< ? php p ( $l -> t ( 'Password description' )); ?> </label>
2022-05-17 06:04:44 +00:00
< input type = " text " id = " description-text " name = " descriptionText " value = " <?php p( $_['descriptionText'] ); ?> " />
</ div >
< div class = " form-section " >
2022-11-12 03:07:29 +00:00
< label for = " button-text " >< ? php p ( $l -> t ( 'Password button text' )); ?> </label>
2022-05-17 06:04:44 +00:00
< input type = " text " id = " button-text " name = " buttonText " value = " <?php p( $_['buttonText'] ); ?> " class = " small " />
</ div >
2022-11-12 03:07:29 +00:00
< div class = " form-section " >
< label for = " billing-url " >< ? php p ( $l -> t ( 'External billing URL' )); ?> </label>
< input type = " text " id = " billing-url " name = " billingUrl " value = " <?php p( $_['billingUrl'] ); ?> " />
</ div >
< div class = " form-section " >
< label for = " billing-description-text " >< ? php p ( $l -> t ( 'Billing description' )); ?> </label>
< input type = " text " id = " billing-description-text " name = " billingDescriptionText " value = " <?php p( $_['billingDescriptionText'] ); ?> " />
</ div >
< div class = " form-section " >
< label for = " billing-button-text " >< ? php p ( $l -> t ( 'Billing button text' )); ?> </label>
< input type = " text " id = " billing-button-text " name = " billingButtonText " value = " <?php p( $_['billingButtonText'] ); ?> " class = " small " />
</ div >
2022-05-17 06:04:44 +00:00
< input type = " submit " id = " externalpassword-save " value = " <?php p( $l->t ('Save')); ?> " />
</ form >
</ div >
</ div >