-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow adding/moving/deleting repo refs (#57)
- Loading branch information
1 parent
7a6c5a2
commit 3d1c554
Showing
5 changed files
with
113 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
/* | ||
Form for adding a new event reference | ||
*/ | ||
|
||
import {html} from 'lit' | ||
import '@material/mwc-textfield' | ||
import '@material/mwc-icon-button' | ||
import '@material/mwc-icon' | ||
import '@material/mwc-button' | ||
|
||
import './GrampsjsFormSelectType.js' | ||
import './GrampsjsFormSelectObjectList.js' | ||
import './GrampsjsFormString.js' | ||
import {GrampsjsObjectForm} from './GrampsjsObjectForm.js' | ||
|
||
class GrampsjsFormRepoRef extends GrampsjsObjectForm { | ||
renderForm () { | ||
return html` | ||
<grampsjs-form-select-object-list | ||
fixedMenuPosition | ||
style="min-height: 300px;" | ||
objectType="repository" | ||
.strings="${this.strings}" | ||
id="repository-select" | ||
label="${this._('Select')}" | ||
class="edit" | ||
></grampsjs-form-select-object-list> | ||
<h4 class="label">${this._('Call Number')}</h4> | ||
<p> | ||
<grampsjs-form-string fullwidth id="call_number" value="${this.data.call_number}"></grampsjs-form-string> | ||
</p> | ||
<grampsjs-form-select-type | ||
required | ||
id="source-media-type" | ||
heading="${this._('Type')}" | ||
.strings="${this.strings}" | ||
typeName="source_media_types" | ||
defaultTypeName="Book" | ||
.types="${this.types}" | ||
.typesLocale="${this.typesLocale}" | ||
> | ||
</grampsjs-form-select-type> | ||
` | ||
} | ||
} | ||
|
||
window.customElements.define('grampsjs-form-reporef', GrampsjsFormRepoRef) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters