forked from zammad/zammad
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reworked admin maintenance area (needed for restarting screen).
- Loading branch information
Showing
31 changed files
with
1,025 additions
and
407 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
app/assets/javascripts/app/controllers/widget/app_config_update.coffee
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
class Widget extends App.Controller | ||
constructor: -> | ||
super | ||
|
||
App.Event.bind( | ||
'config_update' | ||
(data) -> | ||
App.Config.set(data.name, data.value) | ||
App.Event.trigger('config_update_local', data) | ||
) | ||
|
||
App.Config.set('app_config_update', Widget, 'Widgets') |
33 changes: 0 additions & 33 deletions
33
app/assets/javascripts/app/controllers/widget/app_version.coffee
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
app/assets/javascripts/app/views/generic/login_preview.jst.eco
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<div class="login branding centered darkBackground vertical"> | ||
|
||
<% if @C('maintenance_mode'): %> | ||
<div class="hero-unit alert alert--danger"><%- @T('Zammad is currently in maintenance mode. Only administrators can login. Please wait until the maintenance window is over.') %></div> | ||
<% end %> | ||
|
||
<% if !@logoChange || @C('maintenance_login'): %> | ||
<form> | ||
<div contenteditable id="maintenance-message" data-name="message" class="hero-unit alert alert--success js-textarea js-Login" <% if !@C('maintenance_login'): %>style="opacity: 0.5;"<% end %>><%- @C('maintenance_login_message') %></div> | ||
</form> | ||
<% end %> | ||
|
||
<div class="hero-unit"> | ||
|
||
<% if @logoChange: %> | ||
<img class="logo-preview" src="<%= @logoUrl %>"> | ||
<div class="logo-preview-placeholder"><%- @T('Your Logo') %></div> | ||
<div class="centered"> | ||
<div class="btn btn--success fileUpload"><%- @T('Change') %><input type="file" class="js-upload" name="logo" accept="image/*"></div> | ||
</div> | ||
<% else: %> | ||
<img class="company-logo" src="<%= @logoUrl %>"> | ||
<% end %> | ||
|
||
<div class="form-group"> | ||
<label for="username"><%- @Ti('Username / email') %></label> | ||
<input id="username" name="username" type="text" class="form-control" value="<%= @S('login') %>" autocapitalize="off" disabled="disabled"/> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<label for="password"><%- @Ti('Password') %></label> | ||
<input id="password" name="password" type="password" class="form-control" value="some_pass" disabled="disabled"/> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<label><input name="remember_me" value="1" type="checkbox" disabled="disabled"/> <%- @T('Remember me') %></label> | ||
</div> | ||
|
||
<div class="form-controls"> | ||
<button class="btn btn--primary" type="submit" disabled="disabled"><%- @T('Sign in') %></button> | ||
</div> | ||
</div> | ||
</div> |
Oops, something went wrong.