wip
This commit is contained in:
parent
cb8ef96f6b
commit
62968b318f
@ -169,9 +169,9 @@ default_roles = [
|
|||||||
{'role': 'Student', 'doctype':'Student', 'email_field': 'student_email_id'},
|
{'role': 'Student', 'doctype':'Student', 'email_field': 'student_email_id'},
|
||||||
]
|
]
|
||||||
|
|
||||||
role_home_page = {
|
# role_home_page = {
|
||||||
"LMS User": "/lms"
|
# "LMS User": "/lms"
|
||||||
}
|
# }
|
||||||
|
|
||||||
has_website_permission = {
|
has_website_permission = {
|
||||||
"Sales Order": "erpnext.controllers.website_list_for_contact.has_website_permission",
|
"Sales Order": "erpnext.controllers.website_list_for_contact.has_website_permission",
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<template>
|
<template>
|
||||||
<section :class='sectionType'>
|
<section class="featured-products-section" :class='sectionType'>
|
||||||
<div>
|
<h5 class='featured-heading' v-html="title"></h5>
|
||||||
<h3 class='text-center' v-html="title"></h3>
|
<div class="featured-products">
|
||||||
<p class='lead text-center' v-html="description"></p>
|
<!-- <p class='lead text-center' v-html="description"></p> -->
|
||||||
<slot name="card-list-slot"></slot>
|
<slot name="card-list-slot"></slot>
|
||||||
<div class='mt-4 text-center'>
|
<div class='mt-4 text-center'>
|
||||||
<slot name="list-bottom"></slot>
|
<slot name="list-bottom"></slot>
|
||||||
@ -15,4 +15,14 @@ export default {
|
|||||||
props:['title', 'description', 'sectionType'],
|
props:['title', 'description', 'sectionType'],
|
||||||
name: "CardList",
|
name: "CardList",
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
<style scoped>
|
||||||
|
|
||||||
|
.featured-heading {
|
||||||
|
text-transform: uppercase;
|
||||||
|
letter-spacing: 0.5px;
|
||||||
|
font-size: 12px;
|
||||||
|
font-weight: 500;
|
||||||
|
}
|
||||||
|
|
||||||
|
</style>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class='card-deck mt-5'>
|
<div class='margin'>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<img v-if="program.hero_image" :src="program.hero_image" style='height: 150px; width: auto'>
|
<img v-if="program.hero_image" :src="program.hero_image" style='height: 150px; width: auto'>
|
||||||
<div class='card-body'>
|
<div class='card-body'>
|
||||||
@ -79,4 +79,14 @@ export default {
|
|||||||
a.btn-secondary {
|
a.btn-secondary {
|
||||||
color: white !important;
|
color: white !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.card {
|
||||||
|
border: 1px solid #ebeff2;
|
||||||
|
border-radius: 3px;
|
||||||
|
padding: 5px 15px 5px 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.margin {
|
||||||
|
margin-top: 15px;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
@ -1,15 +1,11 @@
|
|||||||
<template>
|
<template>
|
||||||
<section class='top-section'>
|
<div class="hero">
|
||||||
<div>
|
<h1 class="text-center" v-html="title"></h1>
|
||||||
<h1 v-html="title"></h1>
|
<p class='text-center' v-html="description"></p>
|
||||||
<ul class="list-group">
|
<p class="text-center padding">
|
||||||
</ul>
|
<slot></slot>
|
||||||
<p class='lead' v-html="description"></p>
|
</p>
|
||||||
<p class="mt-4">
|
</div>
|
||||||
<slot></slot>
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
@ -17,4 +13,15 @@ export default {
|
|||||||
props: ['title', 'description'],
|
props: ['title', 'description'],
|
||||||
name: "TopSection",
|
name: "TopSection",
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
<style scoped>
|
||||||
|
.hero {
|
||||||
|
padding-top: 50px;
|
||||||
|
padding-bottom: 100px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero h1 {
|
||||||
|
font-size: 40px;
|
||||||
|
font-weight: 200;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
</TopSection>
|
</TopSection>
|
||||||
<CardList :title="'Featured Programs'" :description="'Master ERPNext'" :sectionType="'section-padding section-bg'">
|
<CardList :title="'Featured Programs'" :description="'Master ERPNext'" :sectionType="'section-padding section-bg'">
|
||||||
<ProgramCard slot="card-list-slot" v-for="item in featuredPrograms" :key="item.program.name" :program="item.program" :enrolled="item.is_enrolled"/>
|
<ProgramCard slot="card-list-slot" v-for="item in featuredPrograms" :key="item.program.name" :program="item.program" :enrolled="item.is_enrolled"/>
|
||||||
<AButton slot="list-bottom" :type="'primary'" :size="'lg'" :route="'List/Program'">View All</AButton>
|
<AButton slot="list-bottom" :type="'primary'" :size="'md'" :route="'List/Program'">View All</AButton>
|
||||||
</CardList>
|
</CardList>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
1
erpnext/public/node_modules
Symbolic link
1
erpnext/public/node_modules
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
/Users/shivammishra/Projects/ERPNext/yet-another-bench/apps/erpnext/node_modules
|
Loading…
x
Reference in New Issue
Block a user