Skip to content

Commit

Permalink
fix: Replace some sample data with data from template. Still doesn't …
Browse files Browse the repository at this point in the history
…work.
  • Loading branch information
xdy committed Aug 4, 2020
1 parent 58ef6a9 commit 3d1d0da
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
5 changes: 3 additions & 2 deletions static/template.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,14 @@
}
},
"details": {
"species": "",
"gender": "",
"appearance": "",
"birth_year": 0,
"birth_day": 0,
"rads": 0,
"residence": "",
"birthplace": "",
"homeworld": "",
"description": "",
"career": [
{
Expand Down Expand Up @@ -305,4 +306,4 @@
]
}
}
}
}
10 changes: 5 additions & 5 deletions static/templates/actors/actor-sheet.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
<div class="character-info">
<div class="character-photo">
<span class="helper"></span>
<img class="profile-img" src="{{actor.img}}" data-edit="img" title="{{actor.data.name}}" height="100" width="100" alt="actor image"/>
<img src="{{actor.img}}" data-edit="img" title="{{data.name}}" height="100" width="100" alt="actor image"/>
</div>
<div class="character-name"><h2><input name="{{data.name}}" type="text" value="Character Name" placeholder="Character Name"/></h2></div>
<div class="character-bgi">
<span class="bgi-age">|| Age:<input name="name" type="text" value="0" placeholder="0"/> ||</span>
<span class="bgi-gender">Gender:<input name="name" type="text" value="Sex" placeholder="-"/> ||</span>
<span class="bgi-species">|| Species:<input name="name" type="text" value="Character Race" placeholder="-"/> ||</span>
<span class="bgi-homeworld">|| Homeworld:<input name="name" type="text" value="Name World" placeholder="-"/> ||</span>
<span class="bgi-age">|| Age:<input name="name" type="text" value="{{data.age}}" placeholder="0"/> ||</span>
<span class="bgi-gender">Gender:<input name="name" type="text" value="{{data.gender}}" placeholder="-"/> ||</span>
<span class="bgi-species">|| Species:<input name="name" type="text" value="{{data.species}}" placeholder="-"/> ||</span>
<span class="bgi-homeworld">|| Homeworld:<input name="name" type="text" value="{{data.homeworld}}" placeholder="-"/> ||</span>

</div>
<div class="character-characteristics">
Expand Down

0 comments on commit 3d1d0da

Please sign in to comment.