Skip to content

Commit

Permalink
move related column up in m2o and o2m
Browse files Browse the repository at this point in the history
  • Loading branch information
wellingguzman committed Apr 19, 2017
1 parent ad554f8 commit 418c02a
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions app/templates/modal/columns-new.html
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,9 @@ <h5 id="relationship">Relationship Setup: {{capitalize selectedRelationshipType}

<div>
<div class="column-33 set-height">
{{#if MANYTOMANY}}
<i class="material-icons relational-arrow-left">arrow_forward</i>
{{/if}}
<div class="select-container">
<select {{#if MANYTOONE}}id="junctionKeyRight" name="junction_key_right"{{/if}}{{#if disabledJunctionKeyRight}} disabled{{/if}}>
{{#columns_right}}
Expand All @@ -146,14 +148,19 @@ <h5 id="relationship">Relationship Setup: {{capitalize selectedRelationshipType}
</div>
</div>
{{/if}}
{{#unless MANYTOMANY}}
<div class="column-33 set-height">
<div class="select-container hidden">
<select name="user-group" disabled>
<option value="value">ID</option>
<option value="value">Column</option>
</select>
<i class="material-icons select-arrow">arrow_drop_down</i>
<i class="material-icons relational-arrow-right">arrow_back</i>
<div class="select-container">
<select {{#if ONETOMANY}}id="junctionKeyRight" name="junction_key_right"{{/if}}>
{{#columns_left}}
<option {{#if selected}}selected{{/if}} value={{column_name}}>{{column_name}}</option>
{{/columns_left}}
</select>
<i class="material-icons select-arrow">arrow_drop_down</i>
</div>
</div>
{{/unless}}
</div>

<div>
Expand All @@ -177,7 +184,6 @@ <h5 id="relationship">Relationship Setup: {{capitalize selectedRelationshipType}
<i class="material-icons select-arrow">arrow_drop_down</i>
</div>
</div>
{{/if}}
<div class="column-33 set-height">
<i class="material-icons relational-arrow-right">arrow_back</i>
<div class="select-container">
Expand All @@ -189,6 +195,7 @@ <h5 id="relationship">Relationship Setup: {{capitalize selectedRelationshipType}
<i class="material-icons select-arrow">arrow_drop_down</i>
</div>
</div>
{{/if}}
</div>

</div>
Expand Down

0 comments on commit 418c02a

Please sign in to comment.