diff options
Diffstat (limited to 'ishtar_common')
| -rw-r--r-- | ishtar_common/static/media/style.css | 12 | ||||
| -rw-r--r-- | ishtar_common/templates/base.html | 2 | ||||
| -rw-r--r-- | ishtar_common/wizards.py | 5 |
3 files changed, 14 insertions, 5 deletions
diff --git a/ishtar_common/static/media/style.css b/ishtar_common/static/media/style.css index b1939eaf0..6fe6e6532 100644 --- a/ishtar_common/static/media/style.css +++ b/ishtar_common/static/media/style.css @@ -358,7 +358,7 @@ div#header{ position: fixed; top: 0; z-index: 10; - width:100%; + width: 500px; text-align:left; font-size: 0.9em; background-color: #EAEAEA; @@ -488,10 +488,16 @@ div#context_menu fieldset{ -webkit-border-radius: 0; border-radius: 0; position: fixed; - top: 40px; + top: 8px; right: 10px; } +@media screen and (max-width: 680px) { + div#context_menu fieldset{ + display: none; + } +} + div#action_current_items{ display: inline-block; vertical-align: top; @@ -605,7 +611,7 @@ div#welcome{ div#content{ clear:both; - margin-top:205px ; + margin-top:225px ; margin-bottom: 70px; margin-left: 200px; margin-right: 150px; diff --git a/ishtar_common/templates/base.html b/ishtar_common/templates/base.html index 3136e7249..870409e41 100644 --- a/ishtar_common/templates/base.html +++ b/ishtar_common/templates/base.html @@ -56,7 +56,7 @@ <div id="language_form_div"> <form action="/i18n/setlang/" method="post" id='language_form'> {% csrf_token %} - <label for='language_selector'>{% trans "Lang" %}{% trans ":"%} </label> + {% comment %}<label for='language_selector'>{% trans "Lang" %}{% trans ":"%} </label>{% endcomment %} <select name="language" id='language_selector'> <option value="">----------</option> {% for lang in LANGUAGES %} diff --git a/ishtar_common/wizards.py b/ishtar_common/wizards.py index 735ad62fd..5105418a5 100644 --- a/ishtar_common/wizards.py +++ b/ishtar_common/wizards.py @@ -670,7 +670,10 @@ class Wizard(NamedUrlWizardView): model.RELATIVE_MODELS: value[model.RELATIVE_MODELS[ self.get_saved_model()]] = obj - value, created = model.objects.get_or_create(**value) + value, created = model.objects.get_or_create( + **value) + else: + value = model.objects.create(**value) value.save() # force post_save # check that an item is not add multiple times (forged forms) if value not in related_model.all() and\ |
