Minor css tweaks on the forms

This commit is contained in:
amercader 2012-08-15 18:26:03 +01:00
parent c6c4f6d098
commit 7609a93422
4 changed files with 15 additions and 14 deletions

View File

@ -273,7 +273,7 @@ class ViewController(BaseController):
harvest_list.append({'text':harvester['title'], 'value': harvester['name']}) harvest_list.append({'text':harvester['title'], 'value': harvester['name']})
items = [ items = [
{'name': 'url', 'control': 'input', 'label': _('URL for source of metadata'), 'placeholder': _(''), 'extra_info': 'This should include the http:// part of the URL'}, {'name': 'url', 'control': 'input', 'label': _('URL'), 'placeholder': _(''), 'extra_info': 'This should include the http:// part of the URL'},
{'name': 'type', 'control': 'select', 'options': harvest_list, 'label': _('Source type'), 'placeholder': _(''), 'extra_info': 'Which type of source does the URL above represent? '}, {'name': 'type', 'control': 'select', 'options': harvest_list, 'label': _('Source type'), 'placeholder': _(''), 'extra_info': 'Which type of source does the URL above represent? '},
{'name': 'title', 'control': 'input', 'label': _('Title'), 'placeholder': _(''), 'extra_info': 'This will be shown as the datasets source.'}, {'name': 'title', 'control': 'input', 'label': _('Title'), 'placeholder': _(''), 'extra_info': 'This will be shown as the datasets source.'},
{'name': 'description', 'control': 'textarea', 'label': _('Description'), 'placeholder': _(''), 'extra_info':'You can add your own notes here about what the URL above represents to remind you later.'},] {'name': 'description', 'control': 'textarea', 'label': _('Description'), 'placeholder': _(''), 'extra_info':'You can add your own notes here about what the URL above represents to remind you later.'},]

View File

@ -95,3 +95,7 @@ body.index.ViewController .content-outer {
#harvest-source-details th { #harvest-source-details th {
width: 33%; width: 33%;
} }
#source-new {
margin-top: 30px;
}

View File

@ -5,6 +5,11 @@
{% block breadcrumb_content %} {% block breadcrumb_content %}
{% endblock %} {% endblock %}
{% block styles %}
{{ super() }}
<link type="text/css" rel="stylesheet" media="all" href="/ckanext/harvest/style.css" />
{% endblock %}
{% block primary %} {% block primary %}
<article class="module"> <article class="module">
<div class="module-content"> <div class="module-content">
@ -17,9 +22,3 @@
{% endblock %} {% endblock %}
{% block sidebar %}{% endblock %} {% block sidebar %}{% endblock %}
{#
<py:def function="optional_head">
<link rel="stylesheet" href="${g.site_url}/css/forms.css" type="text/css" media="screen, print" />
<link type="text/css" rel="stylesheet" media="all" href="/ckanext/harvest/style.css" />
</py:def>
#}

View File

@ -5,6 +5,11 @@
{% block breadcrumb_content %} {% block breadcrumb_content %}
{% endblock %} {% endblock %}
{% block styles %}
{{ super() }}
<link type="text/css" rel="stylesheet" media="all" href="/ckanext/harvest/style.css" />
{% endblock %}
{% block primary %} {% block primary %}
<article class="module"> <article class="module">
<div class="module-content"> <div class="module-content">
@ -19,10 +24,3 @@
{% endblock %} {% endblock %}
{% block sidebar %}{% endblock %} {% block sidebar %}{% endblock %}
{#
<py:def function="optional_head">
<link rel="stylesheet" href="${g.site_url}/css/forms.css" type="text/css" media="screen, print" />
<link type="text/css" rel="stylesheet" media="all" href="/ckanext/harvest/style.css" />
</py:def>
#}