Skip to content
Snippets Groups Projects
Commit ea3dc993 authored by Gabriel Engel's avatar Gabriel Engel
Browse files

Replaces "disabled" by "readonly" and Closes #2241

parent 9129204b
No related branches found
No related tags found
No related merge requests found
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
<label>{{_ "Post_as"}}</label> <label>{{_ "Post_as"}}</label>
<div> <div>
{{#if data.token}} {{#if data.token}}
<input type="text" name="username" value="{{data.username}}" disabled="disabled" /> <input type="text" name="username" value="{{data.username}}" readonly="readonly" />
{{else}} {{else}}
<input type="text" name="username" value="{{data.username}}" /> <input type="text" name="username" value="{{data.username}}" />
{{/if}} {{/if}}
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
<div class="input-line double-col"> <div class="input-line double-col">
<label>Webhook URL</label> <label>Webhook URL</label>
<div> <div>
<input type="text" name="webhookurl" value="{{data.url}}" disabled="disabled" /> <input type="text" name="webhookurl" value="{{data.url}}" readonly="readonly" />
<div class="settings-description">{{_ "Send_your_JSON_payloads_to_this_URL"}}</div> <div class="settings-description">{{_ "Send_your_JSON_payloads_to_this_URL"}}</div>
<div class="settings-description"><a href="#" class="clipboard" data-clipboard-target="[name=webhookurl]">{{_ "COPY_TO_CLIPBOARD"}}</a></div> <div class="settings-description"><a href="#" class="clipboard" data-clipboard-target="[name=webhookurl]">{{_ "COPY_TO_CLIPBOARD"}}</a></div>
</div> </div>
...@@ -67,7 +67,7 @@ ...@@ -67,7 +67,7 @@
<div class="input-line double-col"> <div class="input-line double-col">
<label>Token</label> <label>Token</label>
<div> <div>
<input type="text" name="completeToken" value="{{data.completeToken}}" disabled="disabled" /> <input type="text" name="completeToken" value="{{data.completeToken}}" readonly="readonly" />
<div class="settings-description"><a href="#" class="clipboard" data-clipboard-target="[name=completeToken]">{{_ "COPY_TO_CLIPBOARD"}}</a></div> <div class="settings-description"><a href="#" class="clipboard" data-clipboard-target="[name=completeToken]">{{_ "COPY_TO_CLIPBOARD"}}</a></div>
</div> </div>
</div> </div>
...@@ -76,7 +76,7 @@ ...@@ -76,7 +76,7 @@
<label>{{_ "Example"}}</label> <label>{{_ "Example"}}</label>
<div> <div>
<pre><code class="hljs json json-example">{{{exampleJson}}}</code></pre> <pre><code class="hljs json json-example">{{{exampleJson}}}</code></pre>
<input type="text" name="curl" value="{{curl}}" disabled="disabled" /> <input type="text" name="curl" value="{{curl}}" readonly="readonly" />
<div class="settings-description"><a href="#" class="clipboard" data-clipboard-target="[name=curl]">{{_ "COPY_TO_CLIPBOARD"}}</a></div> <div class="settings-description"><a href="#" class="clipboard" data-clipboard-target="[name=curl]">{{_ "COPY_TO_CLIPBOARD"}}</a></div>
</div> </div>
</div> </div>
......
...@@ -30,28 +30,28 @@ ...@@ -30,28 +30,28 @@
<div class="input-line double-col"> <div class="input-line double-col">
<label>{{_ "Client_ID"}}</label> <label>{{_ "Client_ID"}}</label>
<div> <div>
<input type="text" name="clientId" value="{{data.clientId}}" disabled="disabled" /> <input type="text" name="clientId" value="{{data.clientId}}" readonly="readonly" />
<div class="settings-description"><a href="#" class="clipboard" data-clipboard-target="[name=clientId]">{{_ "COPY_TO_CLIPBOARD"}}</a></div> <div class="settings-description"><a href="#" class="clipboard" data-clipboard-target="[name=clientId]">{{_ "COPY_TO_CLIPBOARD"}}</a></div>
</div> </div>
</div> </div>
<div class="input-line double-col"> <div class="input-line double-col">
<label>{{_ "Client_Secret"}}</label> <label>{{_ "Client_Secret"}}</label>
<div> <div>
<input type="text" name="clientSecret" value="{{data.clientSecret}}" disabled="disabled" /> <input type="text" name="clientSecret" value="{{data.clientSecret}}" readonly="readonly" />
<div class="settings-description"><a href="#" class="clipboard" data-clipboard-target="[name=clientSecret]">{{_ "COPY_TO_CLIPBOARD"}}</a></div> <div class="settings-description"><a href="#" class="clipboard" data-clipboard-target="[name=clientSecret]">{{_ "COPY_TO_CLIPBOARD"}}</a></div>
</div> </div>
</div> </div>
<div class="input-line double-col"> <div class="input-line double-col">
<label>{{_ "Authorization_URL"}}</label> <label>{{_ "Authorization_URL"}}</label>
<div> <div>
<input type="text" name="authorization_url" value="{{data.authorization_url}}" disabled="disabled" /> <input type="text" name="authorization_url" value="{{data.authorization_url}}" readonly="readonly" />
<div class="settings-description"><a href="#" class="clipboard" data-clipboard-target="[name=authorization_url]">{{_ "COPY_TO_CLIPBOARD"}}</a></div> <div class="settings-description"><a href="#" class="clipboard" data-clipboard-target="[name=authorization_url]">{{_ "COPY_TO_CLIPBOARD"}}</a></div>
</div> </div>
</div> </div>
<div class="input-line double-col"> <div class="input-line double-col">
<label>{{_ "Access_Token_URL"}}</label> <label>{{_ "Access_Token_URL"}}</label>
<div> <div>
<input type="text" name="access_token_url" value="{{data.access_token_url}}" disabled="disabled" /> <input type="text" name="access_token_url" value="{{data.access_token_url}}" readonly="readonly" />
<div class="settings-description"><a href="#" class="clipboard" data-clipboard-target="[name=access_token_url]">{{_ "COPY_TO_CLIPBOARD"}}</a></div> <div class="settings-description"><a href="#" class="clipboard" data-clipboard-target="[name=access_token_url]">{{_ "COPY_TO_CLIPBOARD"}}</a></div>
</div> </div>
</div> </div>
......
...@@ -500,7 +500,9 @@ form.inline { ...@@ -500,7 +500,9 @@ form.inline {
} }
} }
input[readonly],
input[disabled], input[disabled],
textarea[readonly],
textarea[disabled] { textarea[disabled] {
background-color: #f4f4f4 !important; background-color: #f4f4f4 !important;
} }
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
{{#if allowUsernameChange}} {{#if allowUsernameChange}}
<input type="text" name="username" id="username" placeholder="{{username}}" /> <input type="text" name="username" id="username" placeholder="{{username}}" />
{{else}} {{else}}
<input type="text" name="username" id="username" placeholder="{{username}}" disabled="disabled" title="{{usernameChangeDisabled}}" /> <input type="text" name="username" id="username" placeholder="{{username}}" readonly="readonly" title="{{usernameChangeDisabled}}" />
{{/if}} {{/if}}
</div> </div>
</div> </div>
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
{{#if allowEmailChange}} {{#if allowEmailChange}}
<input type="email" name="email" id="email" placeholder="{{email}}" /> <input type="email" name="email" id="email" placeholder="{{email}}" />
{{else}} {{else}}
<input type="email" name="email" id="email" placeholder="{{email}}" disabled="disabled" title="{{emailChangeDisabled}}" /> <input type="email" name="email" id="email" placeholder="{{email}}" readonly="readonly" title="{{emailChangeDisabled}}" />
{{/if}} {{/if}}
</div> </div>
</div> </div>
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
{{#if allowPasswordChange}} {{#if allowPasswordChange}}
<input type="password" name="oldPassword" id="oldPassword" /> <input type="password" name="oldPassword" id="oldPassword" />
{{else}} {{else}}
<input type="password" name="oldPassword" id="oldPassword" disabled="disabled" title="{{passwordChangeDisabled}}" /> <input type="password" name="oldPassword" id="oldPassword" readonly="readonly" title="{{passwordChangeDisabled}}" />
{{/if}} {{/if}}
</div> </div>
</div> </div>
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
{{#if allowPasswordChange}} {{#if allowPasswordChange}}
<input type="password" name="password" id="password" /> <input type="password" name="password" id="password" />
{{else}} {{else}}
<input type="password" name="password" id="password" disabled="disabled" title="{{passwordChangeDisabled}}"/> <input type="password" name="password" id="password" readonly="readonly" title="{{passwordChangeDisabled}}"/>
{{/if}} {{/if}}
</div> </div>
</div> </div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment