Skip to content

Commit

Permalink
v1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
rogeriolino committed Jan 26, 2015
1 parent 02a3212 commit 1b9362f
Show file tree
Hide file tree
Showing 11 changed files with 336 additions and 383 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
nbproject/*
config.json
53 changes: 36 additions & 17 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,14 @@
</ul>
</div>

<link rel="stylesheet" type="text/css" ng-href="themes/{{ theme }}/style.css" />
<!-- theme -->
<link rel="stylesheet" type="text/css" ng-href="themes/{{ config.theme }}/style.css" />

<div id="layout" class="{{ ultima.styleClass }}">
<div ng-include="'themes/' + config.theme + '/index.html'" onload="themeResources()"></div>
</div>

<!-- config modal -->
<div id="config" class="modal fade">
<div class="modal-dialog">
<div class="modal-content">
Expand All @@ -52,11 +58,11 @@ <h4 class="modal-title" data-i18n="PainelWeb.configuration">Configuração</h4>
<div class="form-group">
<label for="theme">Tema</label>
<input id="theme" type="text" class="form-control"
ng-model="theme">
ng-model="config.theme">
</div>
<div class="form-group">
<label for="idioma" data-i18n="PainelWeb.language">Idioma</label>
<select id="idioma" class="form-control" ng-model="lang" ng-change="changeLang()" ng-selected="lang">
<select id="idioma" class="form-control" ng-model="config.lang" ng-change="changeLang()" ng-selected="config.lang">
<option value="pt">Português</option>
<option value="en">English</option>
<option value="es">Español</option>
Expand All @@ -65,13 +71,13 @@ <h4 class="modal-title" data-i18n="PainelWeb.configuration">Configuração</h4>
<div class="form-group">
<label for="url" data-i18n="PainelWeb.URL">URL</label>
<input id="url" type="text" class="form-control"
ng-model="url"
ng-model="config.url"
ng-blur="changeUrl()"
placeholder="http://">
</div>
<div class="form-group">
<label for="unidades" data-i18n="PainelWeb.units">Unidades</label>
<select id="unidades" class="form-control" ng-model="unidade" ng-change="changeUnidade()" ng-options="u.nome for u in unidades track by u.id" >
<select id="unidades" class="form-control" ng-model="config.unidade" ng-change="changeUnidade()" ng-options="u.nome for u in unidades track by u.id" >
<option value="" data-i18n="PainelWeb.select">Seleccione</option>
</select>
</div>
Expand All @@ -90,17 +96,17 @@ <h4 class="modal-title" data-i18n="PainelWeb.configuration">Configuração</h4>
<div class="form-group">
<label for="alert-file" data-i18n="PainelWeb.alert">Alerta</label>
<div class="input-group">
<select id="alert-file" class="form-control">
<select id="alert-file" class="form-control" ng-model="config.alert">
<option value="ekiga-vm.wav">Ekiga</option>
<option value="doorbell-bingbong.wav">Doorbell bingbong</option>
<option value="toydoorbell.wav">Toy doorbell</option>
<option value="airport-bingbong.wav">Airport bingbong.wav</option>
<option value="airport-bingbong.wav">Airport bingbong</option>
<option value="ding-dong.wav">ding-dong</option>
<option value="infobleep.wav">Info bleep</option>
<option value="quito-mariscal-sucre.wav">Quito mariscal sucre</option>
</select>
<span class="input-group-btn">
<button class="btn btn-default" onclick="PainelWeb.Alert.test();">
<button class="btn btn-default" ng-click="testAlert()">
<span class="glyphicon glyphicon-play"></span>
</button>
</span>
Expand All @@ -110,23 +116,26 @@ <h4 class="modal-title" data-i18n="PainelWeb.configuration">Configuração</h4>
<label data-i18n="PainelWeb.vocalize">Vocalizar</label>
<div class="checkbox">
<label>
<input id="vocalizar-status" type="checkbox" value="1" > <span data-i18n="PainelWeb.active">Ativo</span>
<input type="checkbox" value="1" ng-model="config.vocalizar">
<span data-i18n="PainelWeb.active">Ativo</span>
</label>
</div>
<div class="checkbox">
<label>
<input id="vocalizar-zero" type="checkbox" value="1" class="vocalizar"> <span data-i18n="PainelWeb.zero_left">Zero a esquerda</span>
<input type="checkbox" value="1" class="vocalizar" ng-model="config.vocalizarZero" ng-disabled="config.vocalizar == false">
<span data-i18n="PainelWeb.zero_left">Zero a esquerda</span>
</label>
</div>
<div class="checkbox">
<label>
<input id="vocalizar-local" type="checkbox" value="1" class="vocalizar"> <span data-i18n="PainelWeb.local">Local de atendimento</span>
<input type="checkbox" value="1" class="vocalizar" ng-model="config.vocalizarLocal" ng-disabled="config.vocalizar == false">
<span data-i18n="PainelWeb.local">Local de atendimento</span>
</label>
</div>
<div class="form-group">
<code data-i18n="PainelWeb.key_sample">Senha: A001 / Guichê: 1</code>
<button class="btn btn-default vocalizar" onclick="PainelWeb.Speech.test();">
<span class="glyphicon glyphicon-play"></span>
<button class="btn btn-default vocalizar" ng-click="testSpeech()" ng-disabled="config.vocalizar == false">
<span class="glyphicon glyphicon-play"></span>
</button>
</div>
</div>
Expand All @@ -140,10 +149,20 @@ <h4 class="modal-title" data-i18n="PainelWeb.configuration">Configuração</h4>
</div>
</div>
</div>

<div id="layout" class="{{ ultima.styleClass }}">
<div ng-include="'themes/' + theme + '/index.html'" onload="themeResources()"></div>
<div id="error" data-i18n="PainelWeb.Error.resolution">Resolução não suportada</div>

<!-- error modal -->
<div id="error" class="modal fade">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
<h4 class="modal-title" data-i18n="PainelWeb.error.title">Erro</h4>
</div>
<div class="modal-body">
<p></p>
</div>
</div>
</div>
</div>

<!--
Expand Down
Loading

0 comments on commit 1b9362f

Please sign in to comment.