Skip to content

Commit

Permalink
[#2665] Style the new stages markup
Browse files Browse the repository at this point in the history
  • Loading branch information
aron committed Jul 12, 2012
1 parent c7d815a commit fe1d9ec
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
6 changes: 5 additions & 1 deletion ckan/public/base/less/forms.less
Expand Up @@ -427,16 +427,20 @@ textarea {
background: #eef6ed;
}

// Needs to style spa, button and a elements.
.stages li .highlight {
display: block;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
line-height: 27px;
width: 100%;
padding: 10px 52px;
border: none;
text-align: left;
text-decoration: none;
line-height: 27px;
z-index: -1;
}

Expand Down
8 changes: 4 additions & 4 deletions ckan/templates/package/snippets/stages.html
Expand Up @@ -24,7 +24,7 @@
{% if s1 != 'complete' %}
<span class="highlight">{{ _('Create dataset') }}</span>
{% else %}
<button class="" name="save" value="go-dataset" type="submit">{{ _('Create dataset') }}</button>
<button class="highlight" name="save" value="go-dataset" type="submit">{{ _('Create dataset') }}</button>
{% endif %}
</li>
<li class="middle {{ s2 }}">
Expand All @@ -33,19 +33,19 @@
{% else %}
{% if s1 == 'active' or s3 == 'active'%}
{# stage 1 #}
<button class="" name="save" value="go-resources" type="submit">{{ _('Add data') }}</button>
<button class="highlight" name="save" value="go-resources" type="submit">{{ _('Add data') }}</button>
{% else %}
{% link_for _('Add data'), controller='package', action='new', class_="highlight" %}
{% endif %}
{% endif %}
</li>
<li class="last {{ s3 }}">
{% if s3 != 'complete' %}
<span class="highlight">{{ s3 }}{{ _('Additional data') }}</span>
<span class="highlight">{{ _('Additional data') }}</span>
{% else %}
{% if s1 == 'active' or s2 == 'active' %}
{# stage 1 #}
<button class="" name="save" value="go-metadata" type="submit">{{ _('Additional data') }}</button>
<button class="highlight" name="save" value="go-metadata" type="submit">{{ _('Additional data') }}</button>
{% else %}
{% link_for _('Additional data'), controller='package', action='new', class_="highlight" %}{{ s2 }}
{% endif %}
Expand Down

0 comments on commit fe1d9ec

Please sign in to comment.