CSS improvements.

This commit is contained in:
Martin Edenhofer 2013-09-22 22:55:04 +02:00
parent 696504635f
commit 6163f763aa
8 changed files with 59 additions and 31 deletions

View file

@ -203,12 +203,15 @@ class App.ControllerDrox extends App.Controller
constructor: (params) -> constructor: (params) ->
super super
if params.data && params.data.text if params.data && ( params.data.text || params.data.html )
@inline(params.data) @inline(params.data)
inline: (data) -> inline: (data) ->
@html App.view('generic/drox')(data) @html App.view('generic/drox')(data)
@el.find('.drox-body').text(data.text) if data.text
@el.find('.drox-body').text(data.text)
if data.html
@el.find('.drox-body').html(data.html)
template: (data) -> template: (data) ->
drox = $( App.view('generic/drox')(data) ) drox = $( App.view('generic/drox')(data) )

View file

@ -114,6 +114,13 @@ class Index extends App.ControllerContent
# update textarea size # update textarea size
@el.find('textarea').trigger('change') @el.find('textarea').trigger('change')
new App.ControllerDrox(
el: @el.find('.sidebar')
data:
header: App.i18n.translateInline('What can you do here?')
html: App.i18n.translateInline('The way to communicate with us is this thing called "Ticket".') + ' ' + App.i18n.translateInline('Here you can create one.')
)
cancel: -> cancel: ->
@navigate '#' @navigate '#'

View file

@ -1,17 +1,26 @@
<div class="content-one ticket-create"> <div class="content-two">
<div class="page-header clearfix"> <div class="sidebar">
<div class="page-header-title">
<h1 class="pull-left"><%- @T( 'New Ticket' ) %></h1>
</div>
</div> </div>
<div class="page-content"> <div class="main">
<form class="form-horizontal form-large">
<input type="hidden" value="" name="article_type"/> <div class="ticket-create">
<div id="form_create"></div> <div class="page-header clearfix">
<div class="form-actions"> <div class="page-header-title">
<button type="reset" class="btn btn-default cancel"><%- @T( 'Cancel' ) %></button> <h1 class="pull-left"><%- @T( 'New Ticket' ) %></h1>
<button type="submit" class="btn btn-primary submit"><%- @T( 'Create' ) %></button> </div>
</div> </div>
</form> <div class="page-content">
<form class="form-horizontal form-large">
<input type="hidden" value="" name="article_type"/>
<div id="form_create"></div>
<div class="form-actions">
<button type="reset" class="btn btn-default cancel"><%- @T( 'Cancel' ) %></button>
<button type="submit" class="btn btn-primary submit"><%- @T( 'Create' ) %></button>
</div>
</form>
</div>
</div>
</div> </div>
</div> </div>

View file

@ -6,7 +6,7 @@
<% end %> <% end %>
<div id="form-password"> <div id="form-password">
<h2><%- @T( 'Forgot your password?' ) %><small></small></h2> <h2><%- @T( 'Forgot your password?' ) %><small></small></h2>
<form id="form-password-item" class="form-small"> <form id="form-password-item" class="form-normal">
<a href="#/" class="btn btn-default cancel"><%- @T( 'Cancel' ) %></a> <a href="#/" class="btn btn-default cancel"><%- @T( 'Cancel' ) %></a>
<button class="btn btn-primary submit"><%- @T( 'Submit' ) %></button> <button class="btn btn-primary submit"><%- @T( 'Submit' ) %></button>
</form> </form>

View file

@ -1,6 +1,6 @@
<div class="hero-unit"> <div class="hero-unit">
<h2><%- @T( 'Choose your new password.' ) %><small></small></h2> <h2><%- @T( 'Choose your new password.' ) %><small></small></h2>
<form class="form-small"> <form class="form-normal">
<p id="form-password-change"></p> <p id="form-password-change"></p>
<button class="btn btn-primary submit"><%- @T( 'Submit' ) %></button> <button class="btn btn-primary submit"><%- @T( 'Submit' ) %></button>
</form> </form>

View file

@ -1,6 +1,6 @@
<div class="hero-unit"> <div class="hero-unit">
<h1><%- @T( 'Join' ) %> <%= @C( 'product_name' ) %><small></small></h1> <h1><%- @T( 'Join' ) %> <%= @C( 'product_name' ) %><small></small></h1>
<form class="form-group form-small"> <form class="form-group form-normal">
<p id="form-signup"></p> <p id="form-signup"></p>
<a href="#/" class="btn btn-default cancel"><%- @T( 'Cancel' ) %></a> <a href="#/" class="btn btn-default cancel"><%- @T( 'Cancel' ) %></a>
<button class="btn btn-primary submit"><%- @T( 'Create my account' ) %></button> <button class="btn btn-primary submit"><%- @T( 'Create my account' ) %></button>

View file

@ -75,7 +75,7 @@ table th, table td {
} }
.popover { .popover {
min-width: 180px; min-width: 240px;
z-index: 1110; z-index: 1110;
} }
.hero-two { .hero-two {
@ -161,6 +161,8 @@ table th, table td {
position: absolute; position: absolute;
overflow-y: auto; overflow-y: auto;
overflow-x: hidden; overflow-x: hidden;
right: 0;
left: 0;
} }
.content-two .main > .nav { .content-two .main > .nav {
margin-top: 12px; margin-top: 12px;
@ -288,6 +290,16 @@ table th, table td {
border-right: 1px solid #563d7c; border-right: 1px solid #563d7c;
} }
#global-search {
width: 150px;
border-radius: 8px;
background-color: #f4f4f4;
}
#global-search:focus {
width: 200px;
background-color: #ffffff;
}
#task { #task {
position: fixed; position: fixed;
display: table; display: table;
@ -397,12 +409,15 @@ h5 {
.form-large { .form-large {
width: 85%; width: 85%;
max-width: 700px;
} }
.form-normal { .form-normal {
width: 70%; width: 70%;
max-width: 400px;
} }
.form-small { .form-small {
width: 50%; width: 50%;
max-width: 250px;
} }
.form-normal fieldset { .form-normal fieldset {
margin-bottom: 10px; margin-bottom: 10px;
@ -800,17 +815,7 @@ footer {
.navbar-form { .navbar-form {
margin-top: 6px; margin-top: 6px;
margin-bottom: 6px; margin-bottom: 6px;
} padding: 0;
.nav .form-control {
border-radius: 8px;
}
.nav .form-control {
background-color: #f5f5f5;
}
.nav .form-control:focus {
background-color: #ffffff;
} }
.navbar-brand { .navbar-brand {

View file

@ -1859,6 +1859,10 @@ Translation.create_if_not_exists( :locale => 'de', :source => "Feedback about ou
Translation.create_if_not_exists( :locale => 'de', :source => "What ideas do you have?", :target => "Welche Ideen haben Sie?" ) Translation.create_if_not_exists( :locale => 'de', :source => "What ideas do you have?", :target => "Welche Ideen haben Sie?" )
Translation.create_if_not_exists( :locale => 'de', :source => "Attach Screenshot of page", :target => "Screenshot dieser Seite anhängen" ) Translation.create_if_not_exists( :locale => 'de', :source => "Attach Screenshot of page", :target => "Screenshot dieser Seite anhängen" )
Translation.create_if_not_exists( :locale => 'de', :source => "Thanks for your Feedback!", :target => "Vielen Dank für Ihre Feedback!" ) Translation.create_if_not_exists( :locale => 'de', :source => "Thanks for your Feedback!", :target => "Vielen Dank für Ihre Feedback!" )
Translation.create_if_not_exists( :locale => 'de', :source => "What can you do here?", :target => "Was können Sie hier machen?" )
Translation.create_if_not_exists( :locale => 'de', :source => "Here you can create one.", :target => "Hier können Sie eins erstellen." )
Translation.create_if_not_exists( :locale => 'de', :source => "Fold in", :target => "Einklappen" )
#Translation.create_if_not_exists( :locale => 'de', :source => "", :target => "" ) #Translation.create_if_not_exists( :locale => 'de', :source => "", :target => "" )
# install all packages in auto_install # install all packages in auto_install