1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-26 00:29:47 +02:00

working on forentend

This commit is contained in:
Derek Chen 2019-08-08 00:40:03 +08:00
parent 9d6b6fec23
commit 8c99977fc9
10 changed files with 130 additions and 5 deletions

View file

@ -23,6 +23,13 @@
<i class="dicon {{constants.Icon.Tick}}" />
{{/if}}
</li>
<li class="option {{if isCASProvider "selected"}}" {{action "onCAS"}}>
<div class="text-header">CAS</div>
<div class="text">Via authentication server</div>
{{#if isCASProvider}}
<i class="dicon {{constants.Icon.Tick}}" />
{{/if}}
</li>
</ul>
</div>
@ -167,7 +174,18 @@
{{ui/ui-button color=constants.Color.Yellow light=true label="Test →" onClick=(action "onLDAPPreview")}}
{{ui/ui-button-gap}}
{{/if}}
{{#if isCASProvider}}
<div class="form-group">
<label for="cas-url">CAS Server URL</label>
{{focus-input id="cas-url" type="text" value=casConfig.url class=(if casErrorUrl "form-control is-invalid" "form-control")}}
<small class="form-text text-muted">e.g. http://localhost:8888/auth</small>
</div>
<div class="form-group">
<label for="cas-redirect-url">Redirect URL</label>
{{focus-input id="cas-redirect-url" type="text" value=casConfig.redirectUrl class=(if casErrorRedirectUrl "form-control is-invalid" "form-control")}}
<small class="form-text text-muted">e.g. http://localhost:8888/</small>
</div>
{{/if}}
{{ui/ui-button color=constants.Color.Green light=true icon=constants.Icon.Locked label=constants.Label.Activate onClick=(action "onSave")}}
</form>