mirror of
https://github.com/atlanticbiomedical/biomedjs.git
synced 2025-07-02 00:47:26 -04:00
Tweaks
This commit is contained in:
@ -3,8 +3,10 @@ html(lang="en", ng-app="tags", ng-controller="tags.PageCtrl")
|
||||
head
|
||||
title Atlantic Biomedical
|
||||
!{css}
|
||||
link(rel='stylesheet', href='/css/tags.css')
|
||||
script(type='text/javascript')
|
||||
window.payload = !{JSON.stringify(payload)};
|
||||
meta(name='viewport', content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0')
|
||||
body
|
||||
script(type='text/javascript', src='//ajax.googleapis.com/ajax/libs/angularjs/1.1.4/angular.js')
|
||||
script(type='text/javascript', src='//ajax.googleapis.com/ajax/libs/angularjs/1.1.4/angular-resource.js')
|
||||
@ -20,13 +22,6 @@ html(lang="en", ng-app="tags", ng-controller="tags.PageCtrl")
|
||||
.navbar-inner
|
||||
a.brand(href='/', target='_self') Atlantic Biomedical
|
||||
progress-panel
|
||||
ul.nav.pull-right(ng-show='user')
|
||||
li(ng-show='user.name')
|
||||
a(href='#')
|
||||
i.icon-user
|
||||
| {{user.name.first}} {{user.name.last}}
|
||||
li.photo(ng-show='user.picture', ns-show='user.picture')
|
||||
img(ng-src='{{user.picture}}?sz=50')
|
||||
.navbar.navbar-secondary
|
||||
.navbar-inner
|
||||
ul.nav
|
||||
@ -37,6 +32,12 @@ html(lang="en", ng-app="tags", ng-controller="tags.PageCtrl")
|
||||
.container-fluid
|
||||
h1(ng-show='tag') Device Tag
|
||||
h1(ng-hide='tag') Create Tag
|
||||
div.alert.alert-error(ng-show='user && !isChrome')
|
||||
strong
|
||||
| Warning -
|
||||
| Your browser is unsupported,
|
||||
a(href='https://play.google.com/store/apps/details?id=com.android.chrome')
|
||||
| Download Chrome.
|
||||
div(ng-hide='user')
|
||||
dl.dl-horizontal(ng-show='tag')
|
||||
dt Client
|
||||
@ -69,7 +70,7 @@ html(lang="en", ng-app="tags", ng-controller="tags.PageCtrl")
|
||||
| Create Tag
|
||||
|
||||
div(ng-show='user')
|
||||
form.form-horizontal
|
||||
form
|
||||
.control-group
|
||||
label.control-label Client
|
||||
.controls
|
||||
|
@ -27,3 +27,6 @@ Server was reset on 06.26.2013 at 07:24:10
|
||||
Server was reset on 06.26.2013 at 07:24:10
|
||||
Server was reset on 06.26.2013 at 07:24:10
|
||||
Server was reset on 07.01.2013 at 02:38:49
|
||||
Server was reset on 07.01.2013 at 02:44:36
|
||||
Server was reset on 07.01.2013 at 02:44:36
|
||||
Server was reset on 07.01.2013 at 02:44:36
|
||||
|
6
public/css/tags.css
Normal file
6
public/css/tags.css
Normal file
@ -0,0 +1,6 @@
|
||||
input, input[type="date"], textarea, select {
|
||||
width: 100%;
|
||||
height: 40px;
|
||||
padding: 5px;
|
||||
box-sizing: border-box;
|
||||
}
|
@ -18,6 +18,8 @@ tags.PageCtrl = function($scope, $window, Tag, Clients) {
|
||||
|
||||
$scope.tag = payload.tag ? payload.tag.data : undefined;
|
||||
|
||||
$scope.isChrome = navigator.userAgent.indexOf('Chrome') !== -1;
|
||||
|
||||
if (payload.user) {
|
||||
$scope.user = payload.user;
|
||||
$scope.clients = Clients.index(function() {
|
||||
@ -32,6 +34,8 @@ tags.PageCtrl = function($scope, $window, Tag, Clients) {
|
||||
tag_id: $window.payload.id,
|
||||
client: $scope.client,
|
||||
data: $scope.tag
|
||||
}, function() {
|
||||
alert('Your changes have been saved.');
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user