Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User interface: admin pages and jinja templates #200

Merged
merged 1 commit into from
Feb 19, 2019

Conversation

jma
Copy link
Contributor

@jma jma commented Feb 15, 2019

  • BETTER: lighten the front page search input button color
  • BETTER: resize the front page background image
  • BETTER: remove unused SCSS rules or replace them by a bootstrap class
  • BETTER: enhance the search results views
  • BETTER: enhance the editors views
  • NEW: add delete fonction in libraries and documents brief views
  • FIX: fix locale for schema and forms
  • add a rule for typscript files in the .editorconfig

Co-authored-by: Johnny Mariéthoz Johnny.Mariethoz@rero.ch
Signed-off-by: Igor Milhit igor.milhit@rero.ch


To test

  • bootstrap
  • setup
  • display admin pages, frontpage, document detailed view...

@jma jma force-pushed the layout-minor-corrections branch 3 times, most recently from b3835cf to 7112984 Compare February 15, 2019 10:20
@Garfield-fr
Copy link
Contributor

On the list, the arrow on the right on the connected records is not visible. It must be put before the text on the left.

@Garfield-fr
Copy link
Contributor

I don't know if it's right to put an "add" button for a item on the list. I think it should be in the document.

})
export class BioInformationsPipe implements PipeTransform {

transform(value: any, args?: any): any {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

args is not used in function ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no this has been generated by angular tools, I will remove it.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not deleted ?

})
export class BirthDatePipe implements PipeTransform {

transform(value: any, args?: any): any {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

args is not used in function ?

this.recordsService
.getRecords('locations', 1, 100, `library.pid:${libraryPid}`)
.subscribe(data => {
console.log('recieved', data);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To be deleted

this.recordsService.delete('locations', pid).subscribe(locations => {
this.locations = this.locations.filter(location => location.metadata.pid !== pid);
});
console.log(pid);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To be deleted

@Garfield-fr
Copy link
Contributor

In the list of libraries, the arrow is on the left when the information is closed, but on the right when it is open.

@jma jma force-pushed the layout-minor-corrections branch from 7112984 to 9be0838 Compare February 16, 2019 08:15
@jma
Copy link
Contributor Author

jma commented Feb 16, 2019

@Garfield-fr I was unable to reproduce the arrow position in the libraries view nor seen the json in the item view.

@jma jma force-pushed the layout-minor-corrections branch 4 times, most recently from 7b5e2dc to 0fc0c97 Compare February 18, 2019 12:56
})
export class BioInformationsPipe implements PipeTransform {

transform(value: any, args?: any): any {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not deleted ?

@@ -75,6 +80,10 @@ export class EditorComponent implements OnInit {
this.schemaForm.schema.properties.document
.properties['$ref']['default'] = urlPerfix + query.document;
}
if (this.recordType === 'locations' && query.library) {
this.redirectRecordType = 'libraries';
this.schemaForm.schema.properties.library.properties['$ref']['default'] = 'http://ils.rero.ch/api/libraries/' + query.library;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use ApiService ton generate the url

@jma jma force-pushed the layout-minor-corrections branch 2 times, most recently from 9d68bc2 to 1bd5816 Compare February 19, 2019 07:09
@jma jma force-pushed the layout-minor-corrections branch from 1bd5816 to 8cb9f8e Compare February 19, 2019 14:05
* BETTER: lighten the front page search input button color
* BETTER: resize the front page background image
* BETTER: remove unused SCSS rules or replace them by a bootstrap class
* BETTER: enhance the search results views
* BETTER: enhance the editors views
* NEW: add delete fonction in libraries and documents brief views
* FIX: fix locale for schema and forms
* add a rule for typscript files in the .editorconfig

Signed-off-by: Igor Milhit <igor.milhit@rero.ch>
Co-authored-by: Johnny Mariéthoz <Johnny.Mariethoz@rero.ch>
@jma jma force-pushed the layout-minor-corrections branch from 8cb9f8e to 85ba8d1 Compare February 19, 2019 14:20
@jma jma merged commit 77f39dc into rero:master Feb 19, 2019
@jma jma deleted the layout-minor-corrections branch March 21, 2019 08:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants